Correct r5900 sanitization.

This commit is contained in:
Gavin Romig-Koch 1997-11-04 05:50:22 +00:00
parent d66e8c4bef
commit 0425cfb3af
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -471,7 +471,7 @@ struct _sim_cpu {
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));\
}
/* end-sanitize-r5900 */
/* start-sanitize-r5900 */
#undef CHECKHILO
#define CHECKHILO(s) {\
if ((HIACCESS != 0) || (LOACCESS != 0) || (HI1ACCESS != 0) || (LO1ACCESS != 0))\