diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp b/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp index 033ca756cd..d2de2895a7 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp @@ -110,7 +110,7 @@ JitBase::~JitBase() CPUThreadConfigCallback::RemoveConfigChangedCallback(m_registered_config_callback_id); } -bool JitBase::DoesConfigNeedRefresh() +bool JitBase::DoesConfigNeedRefresh() const { return std::ranges::any_of(JIT_SETTINGS, [this](const auto& pair) { return this->*pair.first != Config::Get(*pair.second); @@ -276,7 +276,7 @@ bool JitBase::CanMergeNextInstructions(int count) const return true; } -bool JitBase::ShouldHandleFPExceptionForInstruction(const PPCAnalyst::CodeOp* op) +bool JitBase::ShouldHandleFPExceptionForInstruction(const PPCAnalyst::CodeOp* op) const { if (jo.fp_exceptions) return (op->opinfo->flags & FL_FLOAT_EXCEPTION) != 0; diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h index 50c840a2b9..4ac81c4049 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -167,7 +167,7 @@ protected: static const std::array*>, 23> JIT_SETTINGS; - bool DoesConfigNeedRefresh(); + bool DoesConfigNeedRefresh() const; void RefreshConfig(); void InitFastmemArena(); @@ -187,7 +187,7 @@ protected: #endif } - bool ShouldHandleFPExceptionForInstruction(const PPCAnalyst::CodeOp* op); + bool ShouldHandleFPExceptionForInstruction(const PPCAnalyst::CodeOp* op) const; public: explicit JitBase(Core::System& system);