forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user