mirror of https://github.com/xqemu/xqemu.git
Enable unaligned access faults
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2782 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
64ddcd797a
commit
9455455016
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
//#define DEBUG_PCALL
|
//#define DEBUG_PCALL
|
||||||
//#define DEBUG_MMU
|
//#define DEBUG_MMU
|
||||||
|
//#define DEBUG_UNALIGNED
|
||||||
|
|
||||||
void raise_exception(int tt)
|
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,
|
static void do_unaligned_access(target_ulong addr, int is_write, int is_user,
|
||||||
void *retaddr)
|
void *retaddr)
|
||||||
{
|
{
|
||||||
/* Uncomment the following line to enable mem_address_not_aligned traps */
|
#ifdef DEBUG_UNALIGNED
|
||||||
/* Not enabled yet because of bugs in OpenBIOS */
|
printf("Unaligned access to 0x%x from 0x%x\n", addr, env->pc);
|
||||||
//raise_exception(TT_UNALIGNED);
|
#endif
|
||||||
//printf("Unaligned access to 0x%x from 0x%x\n", addr, env->pc);
|
raise_exception(TT_UNALIGNED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* try to fill the TLB and return an exception if error. If retaddr is
|
/* try to fill the TLB and return an exception if error. If retaddr is
|
||||||
|
|
Loading…
Reference in New Issue