From c02bf0f662fc7a233ae6b03bc330c484c21f1bf1 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 4 Jul 2024 21:40:19 +1000 Subject: [PATCH] CPU/NewRec/RV64: Compile fix --- src/core/cpu_newrec_compiler_riscv64.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/core/cpu_newrec_compiler_riscv64.cpp b/src/core/cpu_newrec_compiler_riscv64.cpp index ac100ffc0..759f48968 100644 --- a/src/core/cpu_newrec_compiler_riscv64.cpp +++ b/src/core/cpu_newrec_compiler_riscv64.cpp @@ -2,10 +2,6 @@ // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) #include "cpu_newrec_compiler_riscv64.h" -#include "common/align.h" -#include "common/assert.h" -#include "common/log.h" -#include "common/string_util.h" #include "cpu_code_cache_private.h" #include "cpu_core_private.h" #include "cpu_pgxp.h" @@ -13,6 +9,13 @@ #include "gte.h" #include "settings.h" #include "timing_event.h" + +#include "common/align.h" +#include "common/assert.h" +#include "common/log.h" +#include "common/memmap.h" +#include "common/string_util.h" + #include #ifdef CPU_ARCH_RISCV64 @@ -304,7 +307,7 @@ u32 CPU::CodeCache::EmitJump(void* code, const void* dst, bool flush_icache) } if (flush_icache) - JitCodeBuffer::FlushInstructionCache(code, BLOCK_LINK_SIZE); + MemMap::FlushInstructionCache(code, BLOCK_LINK_SIZE); return BLOCK_LINK_SIZE; }