diff --git a/wally-pipelined/src/ifu/icache.sv b/wally-pipelined/src/ifu/icache.sv index 31d16b8a9..f6440fcfb 100644 --- a/wally-pipelined/src/ifu/icache.sv +++ b/wally-pipelined/src/ifu/icache.sv @@ -68,6 +68,7 @@ module icache( rodirectmappedmem #(.LINESIZE(ICACHELINESIZE), .NUMLINES(ICACHENUMLINES), .WORDSIZE(`XLEN)) cachemem( .*, + // Stall it if the pipeline is stalled, unless we're stalling it and we're ending our stall .stall(StallF && (~ICacheStallF || ~EndFetchState)), .flush(FlushMem), .ReadUpperPAdr(ICacheMemReadUpperPAdr),