On 12/24/09 09:09, Isaku Yamahata wrote:
The argument will be used later to remove global variable.
-static int piix4_device_hotplug(PCIDevice *dev, int state); +static int piix4_device_hotplug(void *opaque, PCIDevice *dev, int state);
You are using that to pass the piix4-pm device state. How about using "DeviceState*" instead of "void*" then?
cheers, Gerd