difference between stop_request and quit_request
quit_request is for internal use. This means the IP register was updated and qemu needs to rebuild the translation blocks. stop_request is set by the user (uc_emu_stop) to indecate that unicorn sould stop emulating.
This commit is contained in:
@@ -96,7 +96,7 @@ static int tcg_cpu_exec(struct uc_struct *uc)
|
||||
r = cpu_exec(uc, cpu);
|
||||
|
||||
// quit current TB but continue emulating?
|
||||
if (uc->quit_request) {
|
||||
if (uc->quit_request && !uc->stop_request) {
|
||||
// reset stop_request
|
||||
uc->stop_request = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user