summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-11-07 14:59:49 +0000
committerThiemo Seufer <ths@networkno.de>2006-11-07 14:59:49 +0000
commit077986eeab8d13448f06bc789dfa442c45fb5922 (patch)
tree65f0cb88f5aea8895a4bd03378d476c7f23bdc6d /sim
parent2f8c630b92d528b3a7bb9baa35c771575c5d98e8 (diff)
downloadgdb-077986eeab8d13448f06bc789dfa442c45fb5922.tar.gz
* dsp.igen (do_w_op): Fix compiler warning.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/ChangeLog4
-rw-r--r--sim/mips/dsp.igen4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 0a87ebdd97f..2f867b5ce34 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,7 @@
+2006-11-07 Thiemo Seufer <ths@mips.com>
+
+ * dsp.igen (do_w_op): Fix compiler warning.
+
2006-08-29 Thiemo Seufer <ths@mips.com>
David Ung <davidu@mips.com>
diff --git a/sim/mips/dsp.igen b/sim/mips/dsp.igen
index 18aafcbe50a..0b337cc001c 100644
--- a/sim/mips/dsp.igen
+++ b/sim/mips/dsp.igen
@@ -69,10 +69,10 @@
h0 = (signed64)h1 + (signed64)h2;
else // SUB
h0 = (signed64)h1 - (signed64)h2;
- if (((h0 & 0x100000000) >> 1) != (h0 & 0x80000000))
+ if (((h0 & 0x100000000LL) >> 1) != (h0 & 0x80000000))
{
DSPCR |= DSPCR_OUFLAG4;
- if (h0 & 0x100000000)
+ if (h0 & 0x100000000LL)
h0 = 0x80000000;
else
h0 = 0x7fffffff;