Merge pull request #8472 from degasus/jitsetting

Core/Jits: Adds an option to disable the register cache.
This commit is contained in:
Tilka
2020-02-08 13:49:33 +00:00
committed by GitHub
9 changed files with 45 additions and 10 deletions

View File

@ -142,7 +142,7 @@ void MenuBar::OnEmulationStateChanged(Core::State state)
{m_jit_off, m_jit_loadstore_off, m_jit_loadstore_lbzx_off, m_jit_loadstore_lxz_off,
m_jit_loadstore_lwz_off, m_jit_loadstore_floating_off, m_jit_loadstore_paired_off,
m_jit_floatingpoint_off, m_jit_integer_off, m_jit_paired_off, m_jit_systemregisters_off,
m_jit_branch_off})
m_jit_branch_off, m_jit_register_cache_off})
{
action->setEnabled(running && !playing);
}
@ -896,6 +896,14 @@ void MenuBar::AddJITMenu()
SConfig::GetInstance().bJITBranchOff = enabled;
ClearCache();
});
m_jit_register_cache_off = m_jit->addAction(tr("JIT Register Cache Off"));
m_jit_register_cache_off->setCheckable(true);
m_jit_register_cache_off->setChecked(SConfig::GetInstance().bJITRegisterCacheOff);
connect(m_jit_register_cache_off, &QAction::toggled, [this](bool enabled) {
SConfig::GetInstance().bJITRegisterCacheOff = enabled;
ClearCache();
});
}
void MenuBar::AddSymbolsMenu()

View File

@ -261,6 +261,7 @@ private:
QAction* m_jit_paired_off;
QAction* m_jit_systemregisters_off;
QAction* m_jit_branch_off;
QAction* m_jit_register_cache_off;
bool m_game_selected = false;
};