diff --git a/hw/i386/pc.c b/hw/i386/pc.c index b2fc50106642eff91c508b11ed06add3b40499f1..1eb1db0372a10e87ce4c6cfa096f4bd998dd4adb 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1490,6 +1490,7 @@ void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi, for(i = 0; i < MAX_FD; i++) { fd[i] = drive_get(IF_FLOPPY, 0, i); + create_fdctrl |= !!fd[i]; } *floppy = create_fdctrl ? fdctrl_init_isa(isa_bus, fd) : NULL; }