qemu-patch-raspberry4/hw/ide
Glauber Costa c169998802 v3: don't call reset functions on cpu initialization
There is absolutely no need to call reset functions when initializing
devices. Since we are already registering them, calling qemu_system_reset()
should suffice. Actually, it is what happens when we reboot the machine,
and using the same process instead of a special case semantics will even
allow us to find bugs easier.

Furthermore, the fact that we initialize things like the cpu quite early,
leads to the need to introduce synchronization stuff like qemu_system_cond.
This patch removes it entirely. All we need to do is call qemu_system_reset()
only when we're already sure the system is up and running

I tested it with qemu (with and without io-thread) and qemu-kvm, and it
seems to be doing okay - although qemu-kvm uses a slightly different patch.

[ v2: user mode still needs cpu_reset, so put it in ifdef. ]
[ v3: leave qemu_system_cond for now. ]

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-11-07 08:06:58 +00:00
..
cmd646.c ide: port pci ide to vmstate 2009-10-27 12:28:46 -05:00
core.c ide: pre VMState functions are not needed anymore 2009-10-27 12:28:46 -05:00
internal.h ide: pre VMState functions are not needed anymore 2009-10-27 12:28:46 -05:00
isa.c ide: port isa ide to vmstate 2009-10-27 12:28:46 -05:00
macio.c ide: port pmac ide to vmstate 2009-10-27 12:28:46 -05:00
microdrive.c ide: port microdrive to vmstate 2009-10-27 12:28:45 -05:00
mmio.c ide: port ide mmio to vmstate 2009-10-27 12:28:46 -05: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 v3: don't call reset functions on cpu initialization 2009-11-07 08:06:58 +00:00
qdev.c Clean up test for qdev_init() failure 2009-10-07 08:54:55 -05:00