Build some nops into CLEAR_STATUS here to make sure that the following

instructions can't be interrupted.
This commit is contained in:
Juli Mallett 2010-04-23 19:48:31 +00:00
parent 38f836dbb3
commit c805ff09d5

View File

@ -230,13 +230,15 @@ SlowFault:
or a0, a0, a2 ; \
li a2, ~(MIPS_SR_INT_IE | MIPS_SR_EXL | SR_KSU_USER) ; \
and a0, a0, a2 ; \
mtc0 a0, COP_0_STATUS_REG
mtc0 a0, COP_0_STATUS_REG ; \
ITLBNOPFIX
#else
#define CLEAR_STATUS \
mfc0 a0, COP_0_STATUS_REG ;\
li a2, ~(MIPS_SR_INT_IE | MIPS_SR_EXL | SR_KSU_USER) ; \
and a0, a0, a2 ; \
mtc0 a0, COP_0_STATUS_REG
mtc0 a0, COP_0_STATUS_REG ; \
ITLBNOPFIX
#endif
/*