Don't sync pc if user requests a restart
This commit is contained in:
@@ -86,6 +86,8 @@ 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 we receive a quit request, users has sync-ed PC themselves.
|
||||||
|
if (!cpu->uc->quit_request) {
|
||||||
if (cc->synchronize_from_tb) {
|
if (cc->synchronize_from_tb) {
|
||||||
cc->synchronize_from_tb(cpu, last_tb);
|
cc->synchronize_from_tb(cpu, last_tb);
|
||||||
} else {
|
} else {
|
||||||
@@ -94,6 +96,7 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cpu->tcg_exit_req = 0;
|
cpu->tcg_exit_req = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user