Skip to content
Commit 7c151d3d authored by Markos Chandras's avatar Markos Chandras
Browse files

MIPS: Make use of the ERETNC instruction on MIPS R6



The ERETNC instruction, introduced in MIPS R5, is similar to the ERET
one, except it does not clear the LLB bit in the LLADDR register.
This feature is necessary to safely emulate R2 LL/SC instructions.
However, on context switches, we need to clear the LLAddr/LLB bit
in order to make sure that an SC instruction from the new thread
will never succeed if it happens to interrupt an LL operation on the
same address from the previous thread.

Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
parent b0a668fb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment