Skip to content

Commit

Permalink
cappuccino/fetch: wait out non-cache accesses
Browse files Browse the repository at this point in the history
When an icache invalidate occur, the icache is muxed away from
ibus and the ongoing fetch is fetched from memory instead of cache.
This access have to finish before we can switch back to fetching
from cache.
  • Loading branch information
skristiansson committed Sep 24, 2013
1 parent f43340e commit 5a36725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/verilog/mor1kx_fetch_cappuccino.v
Expand Up @@ -352,7 +352,7 @@ module mor1kx_fetch_cappuccino
mispredict_stall);

assign ibus_access = (!ic_access | tlb_reload_busy | ic_invalidate) &
!ic_refill;
!ic_refill | (state != IDLE) | ibus_ack;
assign imem_ack = ibus_access ? ibus_ack : ic_ack;
assign imem_dat = (nop_ack | except_itlb_miss | except_ipagefault) ?
{`OR1K_OPCODE_NOP,26'd0} :
Expand Down

0 comments on commit 5a36725

Please sign in to comment.