Callback gets pointer to PIIX4PMState as parameter now instead of gpe. Signed-off-by: Gleb Natapov <gleb@xxxxxxxxxx> --- hw/acpi_piix4.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 1c8e4e2..03abc61 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -621,8 +621,8 @@ static void piix4_acpi_system_hot_add_init(PCIBus *bus, PIIX4PMState *s) register_ioport_write(GPE_BASE, 4, 1, gpe_writeb, s); register_ioport_read(GPE_BASE, 4, 1, gpe_readb, s); - register_ioport_write(PROC_BASE, 32, 1, gpe_writeb, gpe); - register_ioport_read(PROC_BASE, 32, 1, gpe_readb, gpe); + register_ioport_write(PROC_BASE, 32, 1, gpe_writeb, s); + register_ioport_read(PROC_BASE, 32, 1, gpe_readb, s); register_ioport_write(PCI_BASE, 8, 4, pcihotplug_write, pci0_status); register_ioport_read(PCI_BASE, 8, 4, pcihotplug_read, pci0_status); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html