From 41e341f260c5e836067682e14d086ef02217e5e2 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 31 Jan 2026 16:06:20 +1100 Subject: [PATCH] icache: Clear fetch failed flag on flush This fixes a bug where a load that results in a DSI, if it is placed near the end of a page and the following page isn't mapped, can result in the core starting to take the DSI but then jumping off to the ISI vector. Signed-off-by: Paul Mackerras --- icache.vhdl | 1 + 1 file changed, 1 insertion(+) diff --git a/icache.vhdl b/icache.vhdl index 7b0ae59..1240d8b 100644 --- a/icache.vhdl +++ b/icache.vhdl @@ -595,6 +595,7 @@ begin r.hit_valid <= '0'; r.stalled_hit <= '0'; r.stalled_way <= to_unsigned(0, WAY_BITS); + r.fetch_failed <= '0'; elsif stall_in = '1' then if r.state = CLR_TAG then r.stalled_hit <= '0';