From: Toni Wilen Date: Wed, 2 Sep 2020 18:56:27 +0000 (+0300) Subject: Skip MMU cache flush if MMU is not enabled. X-Git-Tag: 4900~319 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a7fc14cc9fbd5de28cd916ed028e48bb9c5d94ad;p=francis%2Fwinuae.git Skip MMU cache flush if MMU is not enabled. --- 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));