diff options
author | Chris Demetriou <cgd@google.com> | 2004-05-12 01:42:33 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2004-05-12 01:42:33 +0000 |
commit | 1a27f959ea4265e9ba61e61b22b673347bb9b3ed (patch) | |
tree | 9f5f2b463a3be9397889efa7e53118751203a56e /sim/mips/interp.c | |
parent | 922d5ae03abd5871562e3959ed6eb15578519617 (diff) | |
download | binutils-gdb-1a27f959ea4265e9ba61e61b22b673347bb9b3ed.tar.gz |
2004-05-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* mips/interp.c (decode_coproc): Sign-extend the address retrieved
from COP0_BADVADDR.
* mips/sim-main.h (COP0_BADVADDR): Remove a cast.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r-- | sim/mips/interp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c index f8c14c89ca9..043d76d10d3 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -2102,7 +2102,7 @@ decode_coproc (SIM_DESC sd, case 8: /* 8 = BadVAddr R4000 VR4100 VR4300 */ if (code == 0x00) - GPR[rt] = COP0_BADVADDR; + GPR[rt] = (signed_word) (signed_address) COP0_BADVADDR; else COP0_BADVADDR = GPR[rt]; break; |