Skip to content

Commit

Permalink
Jit: Remove unnecessary member variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JosJuice committed Aug 26, 2023
1 parent 07d70db commit 85281e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/JitArm64/Jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void JitArm64::Init()
{
RefreshConfig();

const size_t child_code_size = m_mmu_enabled ? FARCODE_SIZE_MMU : FARCODE_SIZE;
const size_t child_code_size = jo.memcheck ? FARCODE_SIZE_MMU : FARCODE_SIZE;
AllocCodeSpace(CODE_SIZE + child_code_size);
AddChildCodeSpace(&m_far_code, child_code_size);

Expand Down
4 changes: 1 addition & 3 deletions Source/Core/Core/PowerPC/JitCommon/JitBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ void JitBase::RefreshConfig()
for (const auto& [member, config_info] : JIT_SETTINGS)
this->*member = Config::Get(*config_info);

m_mmu_enabled = m_system.IsMMUMode();
m_pause_on_panic_enabled = m_system.IsPauseOnPanicMode();
if (m_accurate_cpu_cache_enabled)
{
m_fastmem_enabled = false;
Expand All @@ -135,7 +133,7 @@ void JitBase::RefreshConfig()

bool any_watchpoints = m_system.GetPowerPC().GetMemChecks().HasAny();
jo.fastmem = m_fastmem_enabled && jo.fastmem_arena && (m_ppc_state.msr.DR || !any_watchpoints);
jo.memcheck = m_mmu_enabled || m_pause_on_panic_enabled || any_watchpoints;
jo.memcheck = m_system.IsMMUMode() || m_system.IsPauseOnPanicMode() || any_watchpoints;
jo.fp_exceptions = m_enable_float_exceptions;
jo.div_by_zero_exceptions = m_enable_div_by_zero_exceptions;
}
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/PowerPC/JitCommon/JitBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ class JitBase : public CPUCoreBase
bool m_fprf = false;
bool m_accurate_nans = false;
bool m_fastmem_enabled = false;
bool m_mmu_enabled = false;
bool m_pause_on_panic_enabled = false;
bool m_accurate_cpu_cache_enabled = false;

bool m_enable_blr_optimization = false;
Expand Down

0 comments on commit 85281e7

Please sign in to comment.