mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-25 02:49:08 -05:00
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:
@@ -210,11 +210,15 @@ void Reset()
|
||||
|
||||
void ScheduleInvalidateCacheThreadSafe(u32 address)
|
||||
{
|
||||
if (CPU::GetState() == CPU::State::CPU_RUNNING)
|
||||
if (CPU::GetState() == CPU::State::Running)
|
||||
{
|
||||
CoreTiming::ScheduleEvent(0, s_invalidate_cache_thread_safe, address,
|
||||
CoreTiming::FromThread::NON_CPU);
|
||||
}
|
||||
else
|
||||
{
|
||||
PowerPC::ppcState.iCache.Invalidate(static_cast<u32>(address));
|
||||
}
|
||||
}
|
||||
|
||||
void Shutdown()
|
||||
|
||||
Reference in New Issue
Block a user