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 | b0ae6bcf91bf77d7655b1f024915d72ba96a7daa (patch) | |
tree | 87c785bcdda172202dc8d1dda05db831a338b6d3 /sim/mips/interp.c | |
parent | c916ccb9e29dd9eb9d6801c8015df6639f8e6baa (diff) | |
download | gdb-b0ae6bcf91bf77d7655b1f024915d72ba96a7daa.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; |