Jit: Remove unnecessary member variables
This commit is contained in:
parent
07d70db46b
commit
85281e76ee
|
@ -49,7 +49,7 @@ void JitArm64::Init()
|
||||||
{
|
{
|
||||||
RefreshConfig();
|
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);
|
AllocCodeSpace(CODE_SIZE + child_code_size);
|
||||||
AddChildCodeSpace(&m_far_code, child_code_size);
|
AddChildCodeSpace(&m_far_code, child_code_size);
|
||||||
|
|
||||||
|
|
|
@ -119,8 +119,6 @@ void JitBase::RefreshConfig()
|
||||||
for (const auto& [member, config_info] : JIT_SETTINGS)
|
for (const auto& [member, config_info] : JIT_SETTINGS)
|
||||||
this->*member = Config::Get(*config_info);
|
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)
|
if (m_accurate_cpu_cache_enabled)
|
||||||
{
|
{
|
||||||
m_fastmem_enabled = false;
|
m_fastmem_enabled = false;
|
||||||
|
@ -135,7 +133,7 @@ void JitBase::RefreshConfig()
|
||||||
|
|
||||||
bool any_watchpoints = m_system.GetPowerPC().GetMemChecks().HasAny();
|
bool any_watchpoints = m_system.GetPowerPC().GetMemChecks().HasAny();
|
||||||
jo.fastmem = m_fastmem_enabled && jo.fastmem_arena && (m_ppc_state.msr.DR || !any_watchpoints);
|
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.fp_exceptions = m_enable_float_exceptions;
|
||||||
jo.div_by_zero_exceptions = m_enable_div_by_zero_exceptions;
|
jo.div_by_zero_exceptions = m_enable_div_by_zero_exceptions;
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,8 +155,6 @@ protected:
|
||||||
bool m_fprf = false;
|
bool m_fprf = false;
|
||||||
bool m_accurate_nans = false;
|
bool m_accurate_nans = false;
|
||||||
bool m_fastmem_enabled = 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_accurate_cpu_cache_enabled = false;
|
||||||
|
|
||||||
bool m_enable_blr_optimization = false;
|
bool m_enable_blr_optimization = false;
|
||||||
|
|
Loading…
Reference in New Issue