From d13f40357b307e49a7983bd52d4ec35003b7ddc0 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 20 Feb 2024 17:09:30 +0100 Subject: ide, vl: turn -win2k-hack into a property on IDE devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- system/globals.c | 1 - system/vl.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'system') diff --git a/system/globals.c b/system/globals.c index 5d0046b..e353584 100644 --- a/system/globals.c +++ b/system/globals.c @@ -40,7 +40,6 @@ int autostart = 1; int vga_interface_type = VGA_NONE; bool vga_interface_created; Chardev *parallel_hds[MAX_PARALLEL_PORTS]; -int win2k_install_hack; int graphic_rotate; QEMUOptionRom option_rom[MAX_OPTION_ROMS]; int nb_option_roms; diff --git a/system/vl.c b/system/vl.c index 98bf0c3..e480afd 100644 --- a/system/vl.c +++ b/system/vl.c @@ -3265,7 +3265,7 @@ void qemu_init(int argc, char **argv) pid_file = optarg; break; case QEMU_OPTION_win2k_hack: - win2k_install_hack = 1; + object_register_sugar_prop("ide-device", "win2k-install-hack", "true", true); break; case QEMU_OPTION_acpitable: opts = qemu_opts_parse_noisily(qemu_find_opts("acpi"), -- cgit v1.1