![](http://datasheet.mmic.net.cn/370000/-PD30101_datasheet_16680756/-PD30101_349.png)
CHAPTER 25 V
R
4101 COPROCESSOR 0 HAZARDS
539
Cautions 1. If the setting of the K0 bit in the Config register is changed to uncached mode by
MTC0, the accessed memory area is switched to the uncached one at the instruction
fetch of the third instruction after MTC0.
2. A stall of several instructions occurs if a jump or branch instruction is executed
immediately after the setting of the ITS bit in the Status register.
Remarks 1.
The instruction following MTC0 must not be MFC0.
2.
The five instructions following MTC0 to Status register that changes KSU and sets EXL
and ERL may be executed in the new mode, and not kernel mode. This can be avoided by
setting EXL first, leaving KSU set to kernel, and later changing KSU.
3.
There must be two non-load, non-CACHE instructions between a store and a CACHE
instruction directed to the same primary cache line as the store.
The status during execution of the following instruction for which CP0 hazards must be considered is
described below.
(1) MTC0
Destination:
The completion of writing to a destination register (CP0) of MTC0.
(2) MFC0
Source: The confirmation of a source register (CP0) of MFC0.
(3) TLBR
Source: The confirmation of the status of TLB and the Index register before the execution of TLBR.
Destination:
The completion of writing to a destination register (CP0) of TLBR.
(4) TLBWI, TLBWR
Source: The confirmation of a source register of these instructions and registers used to specify a TLB
entry.
Destination:
The completion of writing to TLB by these instructions.
(5) TLBP
Source: The confirmation of the PageMask register and the EntryHi register before the execution of
TLBP.
Destination:
The completion of writing the result of execution of TLBP to the Index register.
(6) ERET
Source: The confirmation of registers containing information necessary for executing ERET.
Destination:
The completion of the processor state transition by the execution of ERET.
(7) CACHE Index Load Tag
Destination:
The completion of writing the results of execution of this instruction to the related
registers.