Set it to true for current Qemu versions, and false for previous ones Signed-off-by: Hervé Poussineau <hpous...@reactos.org> --- hw/fdc.c | 3 +++ hw/pc_piix.c | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/hw/fdc.c b/hw/fdc.c index 7c675f6..af007ae 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -420,6 +420,7 @@ struct FDCtrl { int sun4m; FDrive drives[MAX_FD]; int reset_sensei; + uint32_t check_media_rate; /* Timers state */ uint8_t timer0; uint8_t timer1; @@ -2003,6 +2004,8 @@ static Property isa_fdc_properties[] = { DEFINE_PROP_DRIVE("driveB", FDCtrlISABus, state.drives[1].bs), DEFINE_PROP_INT32("bootindexA", FDCtrlISABus, bootindexA, -1), DEFINE_PROP_INT32("bootindexB", FDCtrlISABus, bootindexB, -1), + DEFINE_PROP_BIT("check_media_rate", FDCtrlISABus, state.check_media_rate, + 0, true), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 400c6b6..baaecd9 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -386,6 +386,14 @@ static QEMUMachine pc_machine_v1_0 = { .init = pc_init_pci, .max_cpus = 255, .is_default = 1, + .compat_props = (GlobalProperty[]) { + { + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", + }, + { /* end of list */ } + }, }; static QEMUMachine pc_machine_v0_15 = { @@ -394,6 +402,14 @@ static QEMUMachine pc_machine_v0_15 = { .init = pc_init_pci, .max_cpus = 255, .is_default = 1, + .compat_props = (GlobalProperty[]) { + { + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", + }, + { /* end of list */ } + }, }; static QEMUMachine pc_machine_v0_14 = { @@ -426,6 +442,10 @@ static QEMUMachine pc_machine_v0_14 = { .driver = "virtio-balloon-pci", .property = "event_idx", .value = "off", + },{ + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", }, { /* end of list */ } }, @@ -473,6 +493,10 @@ static QEMUMachine pc_machine_v0_13 = { .driver = "AC97", .property = "use_broken_id", .value = stringify(1), + },{ + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", }, { /* end of list */ } }, @@ -524,6 +548,10 @@ static QEMUMachine pc_machine_v0_12 = { .driver = "AC97", .property = "use_broken_id", .value = stringify(1), + },{ + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", }, { /* end of list */ } } @@ -583,6 +611,10 @@ static QEMUMachine pc_machine_v0_11 = { .driver = "AC97", .property = "use_broken_id", .value = stringify(1), + },{ + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", }, { /* end of list */ } } @@ -654,6 +686,10 @@ static QEMUMachine pc_machine_v0_10 = { .driver = "AC97", .property = "use_broken_id", .value = stringify(1), + },{ + .driver = "isa-fdc", + .property = "check_media_rate", + .value = "off", }, { /* end of list */ } }, -- 1.7.8.3