mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Alignment check mechanism (not fully enabled yet) (Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2655 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
24be5ae3a0
commit
d2889a3efc
4 changed files with 18 additions and 2 deletions
|
@ -1486,7 +1486,10 @@ void OPPROTO op_movl_npc_im(void)
|
|||
|
||||
void OPPROTO op_movl_npc_T0(void)
|
||||
{
|
||||
env->npc = T0;
|
||||
if (T0 & 0x3)
|
||||
raise_exception(TT_UNALIGNED);
|
||||
else
|
||||
env->npc = T0;
|
||||
}
|
||||
|
||||
void OPPROTO op_mov_pc_npc(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue