From 2954d4ff44ef9cb2bda46bb257f5dbaeb452edd2 Mon Sep 17 00:00:00 2001 From: arbee Date: Wed, 5 Jul 2023 11:25:11 -0400 Subject: cpu/m68k: Revert unwise cleanup. [R. Belmont] --- src/devices/cpu/m68000/m68kcpu.cpp | 4 ++-- src/devices/cpu/m68000/m68kmusashi.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/cpu/m68000/m68kcpu.cpp b/src/devices/cpu/m68000/m68kcpu.cpp index 83f50246b02..d81f7d7baf6 100644 --- a/src/devices/cpu/m68000/m68kcpu.cpp +++ b/src/devices/cpu/m68000/m68kcpu.cpp @@ -1034,7 +1034,7 @@ void m68000_musashi_device::init_cpu_common(void) /* disable all MMUs */ m_has_pmmu = false; - m_has_hmmu = false; + m_has_hmmu = 0; m_pmmu_enabled = false; m_hmmu_enabled = false; m_emmu_enabled = false; @@ -2333,7 +2333,7 @@ void m68000_musashi_device::clear_all() m_instr_mode= 0; m_run_mode= 0; m_has_pmmu= false; - m_has_hmmu= false; + m_has_hmmu= 0; m_pmmu_enabled= false; m_hmmu_enabled= false; m_emmu_enabled= false; diff --git a/src/devices/cpu/m68000/m68kmusashi.h b/src/devices/cpu/m68000/m68kmusashi.h index 5a530ee77b4..d8d7ad582dc 100644 --- a/src/devices/cpu/m68000/m68kmusashi.h +++ b/src/devices/cpu/m68000/m68kmusashi.h @@ -174,7 +174,7 @@ protected: u32 m_instr_mode; /* Stores whether we are in instruction mode or group 0/1 exception mode */ u32 m_run_mode; /* Stores whether we are processing a reset, bus error, address error, or something else */ bool m_has_pmmu; /* Indicates if a PMMU available (yes on 030, 040, no on EC030) */ - bool m_has_hmmu; /* Indicates if an Apple HMMU is available in place of the 68851 (020 only) */ + int m_has_hmmu; /* Indicates if an Apple HMMU is available in place of the 68851 (020 only) */ bool m_pmmu_enabled; /* Indicates if the PMMU is enabled */ bool m_hmmu_enabled; /* Indicates if the HMMU is enabled */ bool m_emmu_enabled; /* Indicates if external MMU is enabled */ -- cgit v1.2.3