fixed bug in determining if access error hit in TLB (checked bit 0 instead of 1).

This commit is contained in:
Markus Fröschle
2014-01-20 14:23:55 +00:00
parent 25280c9684
commit bb378a5cd0

View File

@@ -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