diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-20 15:21:32 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-20 15:21:32 +0000 |
commit | d69d2ca9b4125e738dfc5eee908dfac12fc3f870 (patch) | |
tree | f2d195096d4ce8eb81ea5303e90016449a68e69f /target-sparc/op.c | |
parent | 0f8a249a0ba252d7ff61410791712ae9b3449063 (diff) |
Fix tadd op generation with GCC 4.x
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3196 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op.c')
-rw-r--r-- | target-sparc/op.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c index 31bf5dd513..f2168af9ab 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; |