aboutsummaryrefslogtreecommitdiffstats
path: root/hw/armv7m.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-10 00:26:15 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-10 00:26:15 +0000
commit446544909738bbaf7af927ecd5dcef45debc7167 (patch)
tree88c1b2935a3f0bb1015edb4628d72d43284b73e1 /hw/armv7m.c
parentdc828ca1b59b0c390a6994c78e9658174f821f74 (diff)
More phys_ram_base removal.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7060 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/armv7m.c')
-rw-r--r--hw/armv7m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/armv7m.c b/hw/armv7m.c
index 20e58f50f..1d5619c0d 100644
--- a/hw/armv7m.c
+++ b/hw/armv7m.c
@@ -193,8 +193,8 @@ qemu_irq *armv7m_init(int flash_size, int sram_size,
regular ROM image and perform the normal CPU reset sequence.
Otherwise jump directly to the entry point. */
if (lowaddr == 0) {
- env->regs[13] = tswap32(*(uint32_t *)phys_ram_base);
- pc = tswap32(*(uint32_t *)(phys_ram_base + 4));
+ env->regs[13] = ldl_phys(0);
+ pc = ldl_phys(4);
} else {
pc = entry;
}