diff options
| author | JosJuice <josjuice@gmail.com> | 2017-02-05 08:25:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-05 08:25:12 +0100 |
| commit | e4d20647d4155387e491800f4de68540c5374ace (patch) | |
| tree | 30072ab5353ae98eb818cdeab6d6bd058e5575a9 /Source/Core/DolphinWX/Debugger/CodeWindow.cpp | |
| parent | 567691d3f6358383926660bb42dcf4b2a954dff3 (diff) | |
| parent | f7b9db9846581a3b62042d8892c86c1e48f443ba (diff) | |
Merge pull request #4824 from lioncash/coremode
PowerPC: Convert CoreMode enum into an enum class
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/CodeWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp index 1b60ca1252..f1cab37ad6 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp @@ -309,7 +309,7 @@ void CCodeWindow::SingleStep() if (CPU::IsStepping()) { PowerPC::CoreMode old_mode = PowerPC::GetMode(); - PowerPC::SetMode(PowerPC::MODE_INTERPRETER); + PowerPC::SetMode(PowerPC::CoreMode::Interpreter); PowerPC::breakpoints.ClearAllTemporary(); CPU::StepOpcode(&sync_event); sync_event.WaitFor(std::chrono::milliseconds(20)); @@ -361,7 +361,7 @@ void CCodeWindow::StepOut() using clock = std::chrono::steady_clock; clock::time_point timeout = clock::now() + std::chrono::seconds(5); PowerPC::CoreMode old_mode = PowerPC::GetMode(); - PowerPC::SetMode(PowerPC::MODE_INTERPRETER); + PowerPC::SetMode(PowerPC::CoreMode::Interpreter); // Loop until either the current instruction is a return instruction with no Link flag // or a breakpoint is detected so it can step at the breakpoint. If the PC is currently @@ -482,7 +482,7 @@ void CCodeWindow::OnCPUMode(wxCommandEvent& event) switch (event.GetId()) { case IDM_INTERPRETER: - PowerPC::SetMode(UseInterpreter() ? PowerPC::MODE_INTERPRETER : PowerPC::MODE_JIT); + PowerPC::SetMode(UseInterpreter() ? PowerPC::CoreMode::Interpreter : PowerPC::CoreMode::JIT); break; case IDM_BOOT_TO_PAUSE: SConfig::GetInstance().bBootToPause = event.IsChecked(); |
