Change MMIO callbacks to use offsets, not absolute addresses.
Signed-off-by: Paul Brook <[email protected]>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5849 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/hw/sh_intc.c b/hw/sh_intc.c
index a78419b..99db51c 100644
--- a/hw/sh_intc.c
+++ b/hw/sh_intc.c
@@ -308,7 +308,8 @@
unsigned long address)
{
if (address)
- cpu_register_physical_memory(INTC_A7(address), 4, desc->iomemtype);
+ cpu_register_physical_memory_offset(INTC_A7(address), 4,
+ desc->iomemtype, INTC_A7(address));
}
static void sh_intc_register_source(struct intc_desc *desc,