PowerPC: Convert CoreMode enum into an enum class

Prevents constants from polluting the namespace.
This commit is contained in:
Lioncash committed 2017-02-04 19:34:56 -05:00
1 parent 529dc6aa53
commit f7b9db9846
7 files changed
+21 -24

No files matched your search

+4 -4
View File
@@ -30,10 +30,10 @@ enum
CORE_CACHEDINTERPRETER,
};
enum CoreMode
enum class CoreMode
{
MODE_INTERPRETER,
MODE_JIT,
Interpreter,
JIT,
};
// TLB cache
@@ -146,7 +146,7 @@ const char* GetCPUName();
// Set the current CPU Core to the given implementation until removed.
// Remove the current injected CPU Core by passing nullptr.
// While an external CPUCoreBase is injected, GetMode() will return MODE_INTERPRETER.
// While an external CPUCoreBase is injected, GetMode() will return CoreMode::Interpreter.
// Init() will be called when added and Shutdown() when removed.
// [Threadsafety: Same as SetMode(), except it cannot be called from inside the CPU
// run loop on the CPU Thread - it doesn't make sense for a CPU to remove itself