Browse Source

Correct r5900 sanitization.

gdb-4_18-branch
Gavin Romig-Koch 29 years ago
parent
commit
0425cfb3af
  1. 2
      sim/mips/interp.c
  2. 2
      sim/mips/sim-main.h

2
sim/mips/interp.c

@ -3735,10 +3735,12 @@ sim_engine_run (sd, next_cpu_nr, siggnal)
HIACCESS--; HIACCESS--;
if (LOACCESS > 0) if (LOACCESS > 0)
LOACCESS--; LOACCESS--;
/* start-sanitize-r5900 */
if (HI1ACCESS > 0) if (HI1ACCESS > 0)
HI1ACCESS--; HI1ACCESS--;
if (LO1ACCESS > 0) if (LO1ACCESS > 0)
LO1ACCESS--; LO1ACCESS--;
/* end-sanitize-r5900 */
#endif /* WARN_LOHI */ #endif /* WARN_LOHI */
/* For certain MIPS architectures, GPR[0] is hardwired to zero. We /* For certain MIPS architectures, GPR[0] is hardwired to zero. We

2
sim/mips/sim-main.h

@ -471,7 +471,7 @@ struct _sim_cpu {
if ((HIACCESS != 0) || (LOACCESS != 0)) \ if ((HIACCESS != 0) || (LOACCESS != 0)) \
sim_io_eprintf(sd,"%s over-writing HI and LO registers values (PC = 0x%s HLPC = 0x%s)\n",(s),pr_addr(PC),pr_addr(HLPC));\ sim_io_eprintf(sd,"%s over-writing HI and LO registers values (PC = 0x%s HLPC = 0x%s)\n",(s),pr_addr(PC),pr_addr(HLPC));\
} }
/* end-sanitize-r5900 */ /* start-sanitize-r5900 */
#undef CHECKHILO #undef CHECKHILO
#define CHECKHILO(s) {\ #define CHECKHILO(s) {\
if ((HIACCESS != 0) || (LOACCESS != 0) || (HI1ACCESS != 0) || (LO1ACCESS != 0))\ if ((HIACCESS != 0) || (LOACCESS != 0) || (HI1ACCESS != 0) || (LO1ACCESS != 0))\

Loading…
Cancel
Save