aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-13 15:46:16 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-13 15:46:16 +0000
commitd2889a3efc3851e62de69cb9d88fb784c28e0ed8 (patch)
tree87660ea241f14960521db94da182494cb6adfc33 /target-sparc/op.c
parent24be5ae3a075319a57477fd03b1bdfb74f7f4d05 (diff)
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
Diffstat (limited to 'target-sparc/op.c')
-rw-r--r--target-sparc/op.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c
index c9f068457e..96c8b2db72 100644
--- a/target-sparc/op.c
+++ b/target-sparc/op.c
@@ -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)