aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/translate.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-17 19:30:10 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-17 19:30:10 +0000
commit6c36d3fa860b1dfa55de1e8248be6fffcd876f69 (patch)
treebb7df0c2a61f9094c1ad1c4d55ea6ce2dd1e8085 /target-sparc/translate.c
parent4edebb0e8e14a5b934114b5ff74cb86437bb2532 (diff)
downloadqemu-6c36d3fa860b1dfa55de1e8248be6fffcd876f69.zip
qemu-6c36d3fa860b1dfa55de1e8248be6fffcd876f69.tar.gz
qemu-6c36d3fa860b1dfa55de1e8248be6fffcd876f69.tar.bz2
Enable faults for unassigned memory accesses and unimplemented ASIs
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2824 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r--target-sparc/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index c5eefad..38d2a13 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -3494,6 +3494,8 @@ target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 2, 0) != 0)
if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 0, 0) != 0)
return -1;
+ if (cpu_get_physical_page_desc(phys_addr) == IO_MEM_UNASSIGNED)
+ return -1;
return phys_addr;
}
#endif