summaryrefslogtreecommitdiffstats
path: root/hw/acpi_piix4.c
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@citrix.com>2012-09-19 12:50:03 +0100
committerAndreas Färber <afaerber@suse.de>2012-12-04 14:50:21 +0100
commit42d8a3cf960659069bd2b2d9c443dafd7585607f (patch)
tree1cf71873d173a05758a02ed859270a09602cbec0 /hw/acpi_piix4.c
parentac10027327e27c9b360452e01af3ef2147f5a26f (diff)
downloadhqemu-42d8a3cf960659069bd2b2d9c443dafd7585607f.zip
hqemu-42d8a3cf960659069bd2b2d9c443dafd7585607f.tar.gz
hw/apm.c: Replace register_ioport_*
Replace all register_ioport_*() with a MemoryRegion. This permits to use the new Memory stuff like listeners. Moreover, the PCI device is added as an argument for apm_init(), so we can register IO inside the PCI IO address space. Signed-off-by: Julien Grall <julien.grall@citrix.com> Acked-by: Avi Kivity <avi@redhat.com> [AF: Rebased onto hwaddr and q35] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/acpi_piix4.c')
-rw-r--r--hw/acpi_piix4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
index 519269a..dbddde1 100644
--- a/hw/acpi_piix4.c
+++ b/hw/acpi_piix4.c
@@ -438,7 +438,7 @@ static int piix4_pm_initfn(PCIDevice *dev)
pci_conf[0x3d] = 0x01; // interrupt pin 1
/* APM */
- apm_init(&s->apm, apm_ctrl_changed, s);
+ apm_init(dev, &s->apm, apm_ctrl_changed, s);
register_ioport_write(ACPI_DBG_IO_ADDR, 4, 4, acpi_dbg_writel, s);
OpenPOWER on IntegriCloud