Skip to content

Commit d9d952a

Browse files
committedSep 4, 2012
Fix crash when crossing page boundary with MMU activated
1 parent 70b5f48 commit d9d952a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cores/lm32/rtl/lm32_icache.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ begin
743743
itlb_miss_q <= `FALSE;
744744
else
745745
begin
746-
if (itlb_miss && ~itlb_miss_q)
746+
if (itlb_miss && ~itlb_miss_q && ~(exception_x == `TRUE && stall_m == `FALSE && stall_x == `FALSE && q_x == `TRUE))
747747
itlb_miss_q <= `TRUE;
748748
else if (itlb_miss_q && /* exception_m == `TRUE */ exception_x == `TRUE && stall_m == `FALSE && stall_x == `FALSE && q_x == `TRUE)
749749
itlb_miss_q <= `FALSE;

0 commit comments

Comments
 (0)
Please sign in to comment.