Files
Paul Burton 9406147eeb MIPS: Add barriers between dcache & icache flushes
Index-based cache operations may be arbitrarily reordered by out of
order CPUs. Thus code which writes back the dcache & then invalidates
the icache using indexed cache ops must include a barrier between
operating on the 2 caches in order to prevent the scenario in which:

  - icache invalidation occurs.

  - icache fetch occurs, due to speculation.

  - dcache writeback occurs.

If the above were allowed to happen then the icache would contain stale
data. Forcing the dcache writeback to complete before the icache
invalidation avoids this.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
2025-11-07 17:18:54 -03:00
..
2024-07-03 19:29:59 -07:00
2024-01-08 10:39:12 +01:00
2024-04-25 20:55:47 -07:00
2024-02-20 12:41:52 +01:00
2024-02-20 12:41:52 +01:00