CHECK_EMU_STATUS removal

This commit is contained in:
Nekotekina 2017-02-05 17:06:03 +03:00
parent bf6854d121
commit 246b9f3182
16 changed files with 17 additions and 68 deletions

View file

@ -46,9 +46,7 @@ void cpu_thread::on_task()
// Check thread status
while (!test(state & cpu_flag::exit))
{
CHECK_EMU_STATUS;
// check stop status
// Check stop status
if (!test(state & cpu_flag::stop))
{
try
@ -92,14 +90,12 @@ bool cpu_thread::check_state()
{
while (true)
{
CHECK_EMU_STATUS; // check at least once
if (test(state & cpu_flag::exit))
{
return true;
}
if (!test(state & cpu_state_pause))
if (!test(state & (cpu_state_pause + cpu_flag::dbg_global_stop)))
{
break;
}