summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MenuBar.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2020-02-08 13:49:33 +0000
committerGitHub <noreply@github.com>2020-02-08 13:49:33 +0000
commite323f47cebc979c2147f928620b6907362b8a2ba (patch)
tree57221063332ab8b4c3d5366828db9ff955a16a25 /Source/Core/DolphinQt/MenuBar.cpp
parenta205ecb446e5920d1fb6f6ffde6dc83b956fd877 (diff)
parent3ebcc445de7e2a88a0be0a6ca967f5b0d9b9e01e (diff)
Merge pull request #8472 from degasus/jitsetting
Core/Jits: Adds an option to disable the register cache.
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index 9d76a7c647..e5303e65ae 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -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()