Skip to content
Snippets Groups Projects
Commit d608254b authored by Paul Burton's avatar Paul Burton Committed by Daniel Schwierzeck
Browse files

MIPS: Clear hazard between TagLo writes & cache ops


Writing to the coprocessor 0 TagLo registers introduces an execution
hazard in that we need that write to complete before any cache
instructions execute. Ensure that hazard is cleared by inserting an ehb
instruction between the TagLo writes & cache op loop.

Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
parent c5b8412d
No related branches found
No related tags found
No related merge requests found
...@@ -293,6 +293,7 @@ l2_init: ...@@ -293,6 +293,7 @@ l2_init:
l1_init: l1_init:
mtc0 zero, CP0_TAGLO mtc0 zero, CP0_TAGLO
mtc0 zero, CP0_TAGLO, 2 mtc0 zero, CP0_TAGLO, 2
ehb
/* /*
* The caches are probably in an indeterminate state, so we force good * The caches are probably in an indeterminate state, so we force good
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment