PowerPC: Convert CoreMode enum into an enum class

Prevents constants from polluting the namespace.
This commit is contained in:
Lioncash
2017-02-04 19:18:13 -05:00
parent 529dc6aa53
commit f7b9db9846
7 changed files with 21 additions and 24 deletions

View File

@ -87,13 +87,13 @@ void Run()
// SingleStep so that the "continue", "step over" and "step out" debugger functions
// work when the PC is at a breakpoint at the beginning of the block
// If watchpoints are enabled, any instruction could be a breakpoint.
if (PowerPC::GetMode() != PowerPC::MODE_INTERPRETER)
if (PowerPC::GetMode() != PowerPC::CoreMode::Interpreter)
{
if (PowerPC::breakpoints.IsAddressBreakPoint(PC) || PowerPC::memchecks.HasAny())
{
s_state = CPU_STEPPING;
PowerPC::CoreMode old_mode = PowerPC::GetMode();
PowerPC::SetMode(PowerPC::MODE_INTERPRETER);
PowerPC::SetMode(PowerPC::CoreMode::Interpreter);
PowerPC::SingleStep();
PowerPC::SetMode(old_mode);
s_state = CPU_RUNNING;