Commit d69d2ca9b4125e738dfc5eee908dfac12fc3f870
1 parent
0f8a249a
Fix tadd op generation with GCC 4.x
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3196 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
1 deletions
target-sparc/op.c
| ... | ... | @@ -520,8 +520,11 @@ void OPPROTO op_tadd_T1_T0_ccTV(void) |
| 520 | 520 | { |
| 521 | 521 | target_ulong src1; |
| 522 | 522 | |
| 523 | - if ((T0 & 0x03) || (T1 & 0x03)) | |
| 523 | + if ((T0 & 0x03) || (T1 & 0x03)) { | |
| 524 | 524 | raise_exception(TT_TOVF); |
| 525 | + FORCE_RET(); | |
| 526 | + return; | |
| 527 | + } | |
| 525 | 528 | |
| 526 | 529 | src1 = T0; |
| 527 | 530 | T0 += T1; | ... | ... |