qemu-irix/hw/ide
Markus Armbruster 6394bd0e05 pc: Fix CMOS info for drives defined with -device
Drives defined with -drive if=ide get get created along with the IDE
controller, inside machine->init().  That's before cmos_init().
Drives defined with -device get created during generic device init.
That's after cmos_init().  Because of that, CMOS has no information on
them (type, geometry, translation).  Older versions of Windows such as
XP reportedly choke on that.

Split off the part of CMOS initialization that needs to know about
-device devices, and turn it into a reset handler, so it runs after
device creation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit c0897e0cb9)
2010-08-16 19:42:40 +02:00
..
cmd646.c workaround for cmd646 bmdma register access while no dma is active 2010-03-19 22:54:17 +01:00
core.c ide: Fix ide_dma_cancel 2010-06-09 18:36:09 +02:00
internal.h workaround for cmd646 bmdma register access while no dma is active 2010-03-19 22:54:17 +01:00
isa.c ide: Make PIIX and ISA IDE init functions return the qdev 2010-08-16 19:42:04 +02:00
macio.c IDE: Fix reset handling 2009-11-07 14:13:05 +00:00
microdrive.c Add "static" to please Sparse 2009-12-04 20:44:44 +00:00
mmio.c IDE: Fix reset handling 2009-11-07 14:13:05 +00:00
pci.c ide: port pci ide to vmstate 2009-10-27 12:28:46 -05:00
pci.h ide: port pci ide to vmstate 2009-10-27 12:28:46 -05:00
piix.c ide: Make PIIX and ISA IDE init functions return the qdev 2010-08-16 19:42:04 +02:00
qdev.c pc: Fix CMOS info for drives defined with -device 2010-08-16 19:42:40 +02:00