diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-10 19:11:54 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-10 19:11:54 +0000 |
commit | 90251fb96e9feba205ee4867cbfe21e0142ad341 (patch) | |
tree | 535f3e3e397b92d5adf9da7329bb42100f7a4e17 /target-sparc/op.c | |
parent | cb33da57aaa368d575825d80d734374e3ef8c472 (diff) | |
download | qemu-90251fb96e9feba205ee4867cbfe21e0142ad341.zip qemu-90251fb96e9feba205ee4867cbfe21e0142ad341.tar.gz qemu-90251fb96e9feba205ee4867cbfe21e0142ad341.tar.bz2 |
Fix taddcctv and tsubcctv (David Matthews)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3379 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op.c')
-rw-r--r-- | target-sparc/op.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c index 613bcb0..e12347d 100644 --- a/target-sparc/op.c +++ b/target-sparc/op.c @@ -534,7 +534,7 @@ void OPPROTO op_tadd_T1_T0_ccTV(void) ((src1 & 0xffffffff) ^ (T0 & 0xffffffff))) & (1 << 31)) raise_exception(TT_TOVF); #else - if ((src1 & 0x03) || (T1 & 0x03)) + if (((src1 ^ T1 ^ -1) & (src1 ^ T0)) & (1 << 31)) raise_exception(TT_TOVF); #endif |