mirror of https://github.com/xemu-project/xemu.git
q800: implement compat_props to enable quirk_mode_page_apple_vendor for scsi-cd devices
By default quirk_mode_page_apple_vendor should be enabled for all scsi-cd devices connected to the q800 machine to enable MacOS to detect and use them. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20220622105314.802852-4-mark.cave-ayland@ilande.co.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
09d3786762
commit
f358241029
|
@ -686,6 +686,11 @@ static void q800_init(MachineState *machine)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GlobalProperty hw_compat_q800[] = {
|
||||||
|
{ "scsi-cd", "quirk_mode_page_apple_vendor", "on"},
|
||||||
|
};
|
||||||
|
static const size_t hw_compat_q800_len = G_N_ELEMENTS(hw_compat_q800);
|
||||||
|
|
||||||
static void q800_machine_class_init(ObjectClass *oc, void *data)
|
static void q800_machine_class_init(ObjectClass *oc, void *data)
|
||||||
{
|
{
|
||||||
MachineClass *mc = MACHINE_CLASS(oc);
|
MachineClass *mc = MACHINE_CLASS(oc);
|
||||||
|
@ -695,6 +700,7 @@ static void q800_machine_class_init(ObjectClass *oc, void *data)
|
||||||
mc->max_cpus = 1;
|
mc->max_cpus = 1;
|
||||||
mc->block_default_type = IF_SCSI;
|
mc->block_default_type = IF_SCSI;
|
||||||
mc->default_ram_id = "m68k_mac.ram";
|
mc->default_ram_id = "m68k_mac.ram";
|
||||||
|
compat_props_add(mc->compat_props, hw_compat_q800, hw_compat_q800_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo q800_machine_typeinfo = {
|
static const TypeInfo q800_machine_typeinfo = {
|
||||||
|
|
Loading…
Reference in New Issue