]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/i386/pc_piix.c: remove pc_system_flash_cleanup_unused() from pc_init_isa()
authorMark Cave-Ayland <mark.caveayland@nutanix.com>
Thu, 28 Aug 2025 11:09:56 +0000 (12:09 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Aug 2025 09:20:48 +0000 (11:20 +0200)
This function contains 'assert(PC_MACHINE_GET_CLASS(pcms)->pci_enabled)' and so we can
safely assume that it should never be used for the isapc machine.

Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20250828111057.468712-14-mark.caveayland@nutanix.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc_piix.c

index 66dc4a5186e67a640cc57483d0972065b379a937..fb936748bd19197ea2d7f93bc1b884b923f76c3c 100644 (file)
@@ -503,7 +503,6 @@ static void pc_init_isa(MachineState *machine)
         assert(machine->ram_size == x86ms->below_4g_mem_size +
                                     x86ms->above_4g_mem_size);
 
-        pc_system_flash_cleanup_unused(pcms);
         if (machine->kernel_filename != NULL) {
             /* For xen HVM direct kernel boot, load linux here */
             xen_load_linux(pcms);