aboutsummaryrefslogtreecommitdiff
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
commit02f97da761879ebec8322064acb96dc597c948cc (patch)
treea228c5d64043102d9a6420fef33826f545c03a06 /sim
parentf2a9dd69a91125b27652e8b9c9f6f6872e01a8c4 (diff)
downloadgdb-02f97da761879ebec8322064acb96dc597c948cc.zip
gdb-02f97da761879ebec8322064acb96dc597c948cc.tar.gz
gdb-02f97da761879ebec8322064acb96dc597c948cc.tar.bz2
* 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 0a87ebd..2f867b5 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 18aafcb..0b337cc 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;