diff options
author | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2015-05-22 12:15:57 +0200 |
---|---|---|
committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2015-05-30 16:49:17 +0200 |
commit | 9bbd4843c052a0a467c7a3363046b0c95c0e5fc0 (patch) | |
tree | 58e22548b474e49b9a3038be7c1755af02851ba1 /target-tricore | |
parent | 05b6ca9bbcaede74120050aa8e6684300c09257c (diff) | |
download | qemu-9bbd4843c052a0a467c7a3363046b0c95c0e5fc0.tar.gz qemu-9bbd4843c052a0a467c7a3363046b0c95c0e5fc0.tar.bz2 qemu-9bbd4843c052a0a467c7a3363046b0c95c0e5fc0.zip |
target-tricore: fix msub32_q producing the wrong overflow bit
The inversion of the overflow bit as a special case, which was needed for the
madd32_q instructions, does not apply for msub32_q instructions. So remove it.
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <1432289758-6250-3-git-send-email-kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'target-tricore')
-rw-r--r-- | target-tricore/translate.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/target-tricore/translate.c b/target-tricore/translate.c index 6c14843438..8560d00058 100644 --- a/target-tricore/translate.c +++ b/target-tricore/translate.c @@ -1980,17 +1980,6 @@ gen_msub32_q(TCGv ret, TCGv arg1, TCGv arg2, TCGv arg3, uint32_t n, tcg_gen_or_i64(t1, t1, t2); tcg_gen_trunc_i64_i32(cpu_PSW_V, t1); tcg_gen_shli_tl(cpu_PSW_V, cpu_PSW_V, 31); - /* We produce an overflow on the host if the mul before was - (0x80000000 * 0x80000000) << 1). If this is the - case, we negate the ovf. */ - if (n == 1) { - tcg_gen_setcondi_tl(TCG_COND_EQ, temp, arg2, 0x80000000); - tcg_gen_setcond_tl(TCG_COND_EQ, temp2, arg2, arg3); - tcg_gen_and_tl(temp, temp, temp2); - tcg_gen_shli_tl(temp, temp, 31); - /* negate v bit, if special condition */ - tcg_gen_xor_tl(cpu_PSW_V, cpu_PSW_V, temp); - } /* Calc SV bit */ tcg_gen_or_tl(cpu_PSW_SV, cpu_PSW_SV, cpu_PSW_V); /* Calc AV/SAV bits */ |