summaryrefslogtreecommitdiff
path: root/hw/integratorcp.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-03 15:19:33 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-03 15:19:33 +0000
commit187337f8b0ec0813dd3876d1efe37d415fb81c2e (patch)
tree09fd89eaffd65ea952a407b843599f3d1a13ad63 /hw/integratorcp.c
parent1bc012f65a9b269ec373ca7586032c205d112d8a (diff)
downloadqemu-187337f8b0ec0813dd3876d1efe37d415fb81c2e.tar.gz
Fix off-by-one memory region sizes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2931 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/integratorcp.c')
-rw-r--r--hw/integratorcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c
index 6572af8ec9..119a4402a6 100644
--- a/hw/integratorcp.c
+++ b/hw/integratorcp.c
@@ -257,7 +257,7 @@ static void integratorcm_init(int memsz, uint32_t flash_offset)
iomemtype = cpu_register_io_memory(0, integratorcm_readfn,
integratorcm_writefn, s);
- cpu_register_physical_memory(0x10000000, 0x007fffff, iomemtype);
+ cpu_register_physical_memory(0x10000000, 0x00800000, iomemtype);
integratorcm_do_remap(s, 1);
/* ??? Save/restore. */
}
@@ -390,7 +390,7 @@ static qemu_irq *icp_pic_init(uint32_t base,
s->parent_fiq = parent_fiq;
iomemtype = cpu_register_io_memory(0, icp_pic_readfn,
icp_pic_writefn, s);
- cpu_register_physical_memory(base, 0x007fffff, iomemtype);
+ cpu_register_physical_memory(base, 0x00800000, iomemtype);
/* ??? Save/restore. */
return qi;
}
@@ -454,7 +454,7 @@ static void icp_control_init(uint32_t base)
s = (icp_control_state *)qemu_mallocz(sizeof(icp_control_state));
iomemtype = cpu_register_io_memory(0, icp_control_readfn,
icp_control_writefn, s);
- cpu_register_physical_memory(base, 0x007fffff, iomemtype);
+ cpu_register_physical_memory(base, 0x00800000, iomemtype);
s->base = base;
/* ??? Save/restore. */
}