Skip to content
This repository
Browse code

Fix crash when crossing page boundary with MMU activated

  • Loading branch information...
commit d9d952ae6ea7bda0626203d5bad7c0271531aa4e 1 parent 70b5f48
Yann Sionneau authored September 05, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  cores/lm32/rtl/lm32_icache.v
2  cores/lm32/rtl/lm32_icache.v
@@ -743,7 +743,7 @@ begin
743 743
 		itlb_miss_q <= `FALSE;
744 744
 	else
745 745
 	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))
747 747
 			itlb_miss_q <= `TRUE;
748 748
 		else if (itlb_miss_q && /* exception_m == `TRUE */ exception_x == `TRUE && stall_m == `FALSE && stall_x == `FALSE && q_x == `TRUE)
749 749
 			itlb_miss_q <= `FALSE;

0 notes on commit d9d952a

Please sign in to comment.
Something went wrong with that request. Please try again.