Don't sync pc if user requests a restart
This commit is contained in:
@@ -86,11 +86,14 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb)
|
|||||||
case UC_ERR_FETCH_UNALIGNED:
|
case UC_ERR_FETCH_UNALIGNED:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (cc->synchronize_from_tb) {
|
// If we receive a quit request, users has sync-ed PC themselves.
|
||||||
cc->synchronize_from_tb(cpu, last_tb);
|
if (!cpu->uc->quit_request) {
|
||||||
} else {
|
if (cc->synchronize_from_tb) {
|
||||||
assert(cc->set_pc);
|
cc->synchronize_from_tb(cpu, last_tb);
|
||||||
cc->set_pc(cpu, last_tb->pc);
|
} else {
|
||||||
|
assert(cc->set_pc);
|
||||||
|
cc->set_pc(cpu, last_tb->pc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user