diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp index 979b924733..81b9a5d60f 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp @@ -923,7 +923,7 @@ void DSPJitRegCache::SpillXReg(X64Reg reg) } } -X64Reg DSPJitRegCache::FindFreeXReg() +X64Reg DSPJitRegCache::FindFreeXReg() const { for (X64Reg x : s_allocation_order) { diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h index 7ef7d24078..3f6ffe5c0d 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h @@ -160,7 +160,7 @@ private: }; // Find a free host reg - Gen::X64Reg FindFreeXReg(); + Gen::X64Reg FindFreeXReg() const; Gen::X64Reg SpillXReg(); Gen::X64Reg FindSpillFreeXReg(); void SpillXReg(Gen::X64Reg reg);