summaryrefslogtreecommitdiffstats
path: root/target-mips
diff options
context:
space:
mode:
authorPetar Jovanovic <petarj@mips.com>2013-02-07 19:36:09 +0100
committerAurelien Jarno <aurelien@aurel32.net>2013-02-23 22:20:45 +0100
commita345481baa2b2fb3d54f8c9ddb58dfcaf75786df (patch)
treef644378b66e59d6f0251c62ab43244f117584d28 /target-mips
parent9c19eb1e205b29018f6f61c5f43db6abbe7dc0e5 (diff)
downloadhqemu-a345481baa2b2fb3d54f8c9ddb58dfcaf75786df.zip
hqemu-a345481baa2b2fb3d54f8c9ddb58dfcaf75786df.tar.gz
target-mips: fix for sign-issue in MULQ_W helper
Correct sign-propagation before multiplication in MULQ_W helper. The change also fixes previously incorrect expected values in the tests for MULQ_RS.W and MULQ_S.W. Signed-off-by: Petar Jovanovic <petarj@mips.com> Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/dsp_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c
index 6781da8..841f47b 100644
--- a/target-mips/dsp_helper.c
+++ b/target-mips/dsp_helper.c
@@ -2689,7 +2689,7 @@ MAQ_SA_W(maq_sa_w_phr, 0);
target_ulong helper_##name(target_ulong rs, target_ulong rt, \
CPUMIPSState *env) \
{ \
- uint32_t rs_t, rt_t; \
+ int32_t rs_t, rt_t; \
int32_t tempI; \
int64_t tempL; \
\
OpenPOWER on IntegriCloud