aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-07 18:05:05 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-07 18:05:05 +0000
commit945545501641bad0b650350168e365eff9a3eef3 (patch)
treeb984c93b0786640992d26af243929cbde2918142 /target-sparc
parent64ddcd797a06a4598e0f5fe77aa82f7a11ef5695 (diff)
downloadqemu-945545501641bad0b650350168e365eff9a3eef3.zip
qemu-945545501641bad0b650350168e365eff9a3eef3.tar.gz
qemu-945545501641bad0b650350168e365eff9a3eef3.tar.bz2
Enable unaligned access faults
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2782 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/op_helper.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index 2edc8d7..4349503 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -2,6 +2,7 @@
//#define DEBUG_PCALL
//#define DEBUG_MMU
+//#define DEBUG_UNALIGNED
void raise_exception(int tt)
{
@@ -945,10 +946,10 @@ static void do_unaligned_access(target_ulong addr, int is_write, int is_user,
static void do_unaligned_access(target_ulong addr, int is_write, int is_user,
void *retaddr)
{
- /* Uncomment the following line to enable mem_address_not_aligned traps */
- /* Not enabled yet because of bugs in OpenBIOS */
- //raise_exception(TT_UNALIGNED);
- //printf("Unaligned access to 0x%x from 0x%x\n", addr, env->pc);
+#ifdef DEBUG_UNALIGNED
+ printf("Unaligned access to 0x%x from 0x%x\n", addr, env->pc);
+#endif
+ raise_exception(TT_UNALIGNED);
}
/* try to fill the TLB and return an exception if error. If retaddr is