Resume CPU for writing PC

This commit is contained in:
lazymio 2022-04-26 01:53:02 +02:00
parent ed90e98d81
commit 8fb4b45f57
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -99,6 +99,12 @@ static int tcg_cpu_exec(struct uc_struct *uc)
if (uc->quit_request) {
// reset stop_request
uc->stop_request = false;
// resume cpu
cpu->halted = 0;
cpu->exit_request = 0;
cpu->exception_index = -1;
cpu_resume(cpu);
} else if (uc->stop_request) {
//printf(">>> got STOP request!!!\n");
finish = true;