|
@@ -285,6 +285,9 @@ void cpu_exec_step_atomic(CPUState *cpu)
|
|
|
|
|
|
if (sigsetjmp(cpu->jmp_env, 0) == 0) {
|
|
|
start_exclusive();
|
|
|
+ g_assert(cpu == current_cpu);
|
|
|
+ g_assert(!cpu->running);
|
|
|
+ cpu->running = true;
|
|
|
|
|
|
tb = tb_lookup__cpu_state(cpu, &pc, &cs_base, &flags, cf_mask);
|
|
|
if (tb == NULL) {
|
|
@@ -323,6 +326,7 @@ void cpu_exec_step_atomic(CPUState *cpu)
|
|
|
*/
|
|
|
g_assert(cpu_in_exclusive_context(cpu));
|
|
|
parallel_cpus = true;
|
|
|
+ cpu->running = false;
|
|
|
end_exclusive();
|
|
|
}
|
|
|
|