From ed99c962327fb0a544c511fc441a7ebb17173c3f Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 24 May 2023 10:43:20 +0200 Subject: [PATCH] mmu: slow mmu build fix --- core/hw/sh4/modules/mmu.cpp | 2 +- core/hw/sh4/modules/mmu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hw/sh4/modules/mmu.cpp b/core/hw/sh4/modules/mmu.cpp index 46b9cf985..44e9165b0 100644 --- a/core/hw/sh4/modules/mmu.cpp +++ b/core/hw/sh4/modules/mmu.cpp @@ -306,7 +306,7 @@ MmuError mmu_data_translation(u32 va, u32& rv) } const TLB_Entry *entry; - u32 lookup = mmu_full_lookup(va, &entry, rv); + MmuError lookup = mmu_full_lookup(va, &entry, rv); if (lookup != MmuError::NONE) return lookup; diff --git a/core/hw/sh4/modules/mmu.h b/core/hw/sh4/modules/mmu.h index ca37fdb6b..9ffd68373 100644 --- a/core/hw/sh4/modules/mmu.h +++ b/core/hw/sh4/modules/mmu.h @@ -87,7 +87,7 @@ static inline MmuError mmu_instruction_translation(u32 va, u32& rv) return mmu_full_lookup(va, nullptr, rv); } #else -u32 mmu_instruction_translation(u32 va, u32& rv); +MmuError mmu_instruction_translation(u32 va, u32& rv); #endif template