1
0
mirror of https://github.com/simh/simh.git synced 2026-04-28 04:44:55 +00:00

3b2: Fix for critical MMU caching bugs

Two critical issues are fixed with this commit:

1. The MMU cache was being corrupted by writing the 'Last Used'
   bit into the wrong half of the PD cache (low word vs. high word)

2. The MMU cache was being too aggressively flushed on SRAMA
   write, because the wrong length was being used. In addition,
   the code was walking off the end of the cache array when
   flushing any section other than section 0, potentially causing
   memory corruption.
This commit is contained in:
Seth Morabito
2017-12-15 13:23:06 -08:00
parent 6b8d8b048e
commit 634a92f8bf
2 changed files with 36 additions and 19 deletions

View File

@@ -66,9 +66,6 @@ IU_PORT iu_contty;
/* The timer state */
IU_TIMER_STATE iu_timer_state;
/* The power flag */
t_bool iu_killpower = FALSE;
/* Flags for incrementing mode pointers */
t_bool iu_increment_a = FALSE;
t_bool iu_increment_b = FALSE;