Commit 945545501641bad0b650350168e365eff9a3eef3
1 parent
64ddcd79
Enable unaligned access faults
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2782 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
4 deletions
target-sparc/op_helper.c
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | |
3 | 3 | //#define DEBUG_PCALL |
4 | 4 | //#define DEBUG_MMU |
5 | +//#define DEBUG_UNALIGNED | |
5 | 6 | |
6 | 7 | void raise_exception(int tt) |
7 | 8 | { |
... | ... | @@ -945,10 +946,10 @@ static void do_unaligned_access(target_ulong addr, int is_write, int is_user, |
945 | 946 | static void do_unaligned_access(target_ulong addr, int is_write, int is_user, |
946 | 947 | void *retaddr) |
947 | 948 | { |
948 | - /* Uncomment the following line to enable mem_address_not_aligned traps */ | |
949 | - /* Not enabled yet because of bugs in OpenBIOS */ | |
950 | - //raise_exception(TT_UNALIGNED); | |
951 | - //printf("Unaligned access to 0x%x from 0x%x\n", addr, env->pc); | |
949 | +#ifdef DEBUG_UNALIGNED | |
950 | + printf("Unaligned access to 0x%x from 0x%x\n", addr, env->pc); | |
951 | +#endif | |
952 | + raise_exception(TT_UNALIGNED); | |
952 | 953 | } |
953 | 954 | |
954 | 955 | /* try to fill the TLB and return an exception if error. If retaddr is | ... | ... |