summaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-25 15:33:53 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-25 15:33:53 +0000
commit6b1575b74689c77e7bd9d8aafe63ed5cbd22f72d (patch)
tree1deebad53f0195a8f20ca6716191d5406df4c6c2 /target-sparc
parent9d9754a31dd1e954c95d7cc3553845677a1a9f63 (diff)
downloadqemu-6b1575b74689c77e7bd9d8aafe63ed5cbd22f72d.tar.gz
qemu-6b1575b74689c77e7bd9d8aafe63ed5cbd22f72d.tar.bz2
qemu-6b1575b74689c77e7bd9d8aafe63ed5cbd22f72d.zip
cpu_get_phys_page_debug fix (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2010 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index bbd072c37a..65ee97599d 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -2771,7 +2771,8 @@ target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
int prot, access_index;
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 2, 0) != 0)
- return -1;
+ if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 0, 0) != 0)
+ return -1;
return phys_addr;
}
#endif