aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-28 22:37:22 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-28 22:37:22 +0000
commit8df1cd076cc14d1d4fc456c6d7d1ceb257781942 (patch)
tree0e11aae2a7a168e941609549c536c270344bf816 /target-ppc
parentbb05683b1271517b5f78aff1890e37f0d27b4d2d (diff)
physical memory access functions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1249 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 5d41fcb058..f3db55fe4d 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -129,8 +129,8 @@ static int find_pte (uint32_t *RPN, int *prot, uint32_t base, uint32_t va,
int ret = -1; /* No entry found */
for (i = 0; i < 8; i++) {
- pte0 = ldl_raw(phys_ram_base + base + (i * 8));
- pte1 = ldl_raw(phys_ram_base + base + (i * 8) + 4);
+ pte0 = ldl_phys(base + (i * 8));
+ pte1 = ldl_phys(base + (i * 8) + 4);
#if defined (DEBUG_MMU)
if (loglevel > 0) {
fprintf(logfile, "Load pte from 0x%08x => 0x%08x 0x%08x "
@@ -220,7 +220,7 @@ static int find_pte (uint32_t *RPN, int *prot, uint32_t base, uint32_t va,
}
}
if (store) {
- stl_raw(phys_ram_base + base + (good * 8) + 4, keep);
+ stl_phys_notdirty(base + (good * 8) + 4, keep);
}
}