aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/interp.c
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2002-03-03 06:49:43 +0000
committerChris Demetriou <cgd@google.com>2002-03-03 06:49:43 +0000
commit043b7057fd25d89f2539850adf2c06de6ea42742 (patch)
tree9c46323260c2da113fe958797243a77a8870ad2c /sim/mips/interp.c
parentc1e8ada4068561eda83b2bdef82f6e51bcea6297 (diff)
downloadgdb-043b7057fd25d89f2539850adf2c06de6ea42742.zip
gdb-043b7057fd25d89f2539850adf2c06de6ea42742.tar.gz
gdb-043b7057fd25d89f2539850adf2c06de6ea42742.tar.bz2
2002-03-02 Chris Demetriou <cgd@broadcom.com>
* interp.c (load_word): Use EXTEND32 rather than SIGNEXTEND. * mips.igen (LL, CxC1, MxC1): Likewise.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r--sim/mips/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index 95f0ab6..3e31ce4 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -1426,7 +1426,7 @@ load_word (SIM_DESC sd,
LoadMemory (&memval,NULL,uncached, AccessLength_WORD, paddr, vaddr,
isDATA, isREAL);
byte = (vaddr & mask) ^ (bigend << 2);
- return SIGNEXTEND (((memval >> (8 * byte)) & 0xffffffff), 32);
+ return EXTEND32 (memval >> (8 * byte));
}
}