Permalink
Browse files

Fix crash when crossing page boundary with MMU activated

  • Loading branch information...
1 parent 70b5f48 commit d9d952ae6ea7bda0626203d5bad7c0271531aa4e @fallen committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cores/lm32/rtl/lm32_icache.v
View
2 cores/lm32/rtl/lm32_icache.v
@@ -743,7 +743,7 @@ begin
itlb_miss_q <= `FALSE;
else
begin
- if (itlb_miss && ~itlb_miss_q)
+ if (itlb_miss && ~itlb_miss_q && ~(exception_x == `TRUE && stall_m == `FALSE && stall_x == `FALSE && q_x == `TRUE))
itlb_miss_q <= `TRUE;
else if (itlb_miss_q && /* exception_m == `TRUE */ exception_x == `TRUE && stall_m == `FALSE && stall_x == `FALSE && q_x == `TRUE)
itlb_miss_q <= `FALSE;

0 comments on commit d9d952a

Please sign in to comment.