From a7fc14cc9fbd5de28cd916ed028e48bb9c5d94ad Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 2 Sep 2020 21:56:27 +0300 Subject: [PATCH] Skip MMU cache flush if MMU is not enabled. --- cpummu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpummu.cpp b/cpummu.cpp index 50fbd5a0..59a56eff 100644 --- a/cpummu.cpp +++ b/cpummu.cpp @@ -1544,6 +1544,8 @@ void REGPARAM2 mmu_set_super(bool super) void REGPARAM2 mmu_flush_cache(void) { + if (!currprefs.mmu_model) + return; #if MMU_ICACHE int len = sizeof(mmu_icache_data); memset(&mmu_icache_data, 0xff, sizeof(mmu_icache_data)); -- 2.47.3