mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-27 08:10:13 -06:00
enum CPUState: rename CPU_* to STATE_*
This commit is contained in:
@ -47,21 +47,21 @@ void CCPU::Run()
|
||||
reswitch:
|
||||
switch (PowerPC::GetState())
|
||||
{
|
||||
case PowerPC::CPU_RUNNING:
|
||||
case PowerPC::STATE_RUNNING:
|
||||
//1: enter a fast runloop
|
||||
PowerPC::RunLoop();
|
||||
break;
|
||||
|
||||
case PowerPC::CPU_STEPPING:
|
||||
case PowerPC::STATE_STEPPING:
|
||||
m_csCpuOccupied.unlock();
|
||||
|
||||
//1: wait for step command..
|
||||
m_StepEvent.Wait();
|
||||
|
||||
m_csCpuOccupied.lock();
|
||||
if (PowerPC::GetState() == PowerPC::CPU_POWERDOWN)
|
||||
if (PowerPC::GetState() == PowerPC::STATE_POWERDOWN)
|
||||
return;
|
||||
if (PowerPC::GetState() != PowerPC::CPU_STEPPING)
|
||||
if (PowerPC::GetState() != PowerPC::STATE_STEPPING)
|
||||
goto reswitch;
|
||||
|
||||
//3: do a step
|
||||
@ -76,7 +76,7 @@ reswitch:
|
||||
Host_UpdateDisasmDialog();
|
||||
break;
|
||||
|
||||
case PowerPC::CPU_POWERDOWN:
|
||||
case PowerPC::STATE_POWERDOWN:
|
||||
//1: Exit loop!!
|
||||
return;
|
||||
}
|
||||
@ -91,7 +91,7 @@ void CCPU::Stop()
|
||||
|
||||
bool CCPU::IsStepping()
|
||||
{
|
||||
return PowerPC::GetState() == PowerPC::CPU_STEPPING;
|
||||
return PowerPC::GetState() == PowerPC::STATE_STEPPING;
|
||||
}
|
||||
|
||||
void CCPU::Reset()
|
||||
@ -102,7 +102,7 @@ void CCPU::Reset()
|
||||
void CCPU::StepOpcode(Common::Event *event)
|
||||
{
|
||||
m_StepEvent.Set();
|
||||
if (PowerPC::GetState() == PowerPC::CPU_STEPPING)
|
||||
if (PowerPC::GetState() == PowerPC::STATE_STEPPING)
|
||||
{
|
||||
m_SyncEvent = event;
|
||||
}
|
||||
|
Reference in New Issue
Block a user