aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op.c
diff options
context:
space:
mode:
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 31bf5dd..f2168af 100644
--- a/target-sparc/op.c
+++ b/target-sparc/op.c
@@ -520,8 +520,11 @@ void OPPROTO op_tadd_T1_T0_ccTV(void)
{
target_ulong src1;
- if ((T0 & 0x03) || (T1 & 0x03))
+ if ((T0 & 0x03) || (T1 & 0x03)) {
raise_exception(TT_TOVF);
+ FORCE_RET();
+ return;
+ }
src1 = T0;
T0 += T1;