CPU: Convert state enum to an enum class

Gets enum constants out of the immediate namespace. Also makes it
strongly typed like the other state enums.
This commit is contained in:
Lioncash committed 2017-03-28 11:48:28 -04:00
1 parent 85d74a506f
commit 8d98ac6509
17 files changed
+68 -56

No files matched your search

@@ -107,7 +107,7 @@ void CachedInterpreter::ExecuteOneBlock()
void CachedInterpreter::Run()
{
while (CPU::GetState() == CPU::CPU_RUNNING)
while (CPU::GetState() == CPU::State::Running)
{
// Start new timing slice
// NOTE: Exceptions may change PC