From bb378a5cd0a133eb6b9678697cedfe9ff70b543f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 20 Jan 2014 14:23:55 +0000 Subject: [PATCH] fixed bug in determining if access error hit in TLB (checked bit 0 instead of 1). --- BaS_gcc/sys/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaS_gcc/sys/mmu.c b/BaS_gcc/sys/mmu.c index 73bd4a5..30c5dc5 100644 --- a/BaS_gcc/sys/mmu.c +++ b/BaS_gcc/sys/mmu.c @@ -404,7 +404,7 @@ bool access_exception(uint32_t pc, uint32_t format_status) return false; } - if (MCF_MMU_MMUSR & 1) /* did the last fault hit in TLB? */ + if (MCF_MMU_MMUSR & 2) /* did the last fault hit in TLB? */ { /* * if yes, then we already mapped that page during a previous turn and this is in fact a bus error