Add a regression test for invalidating empty TB and have a better solution

This commit is contained in:
lazymio
2021-11-03 01:07:06 +01:00
parent c11b9aa5c3
commit eb75d459f0
3 changed files with 36 additions and 7 deletions

6
uc.c
View File

@ -657,12 +657,6 @@ uc_err uc_emu_start(uc_engine *uc, uint64_t begin, uint64_t until,
uc->timed_out = false;
uc->first_tb = true;
// In this case, we don't do any emulation because it will generate
// an empty translation block which we can't invalidate.
if (begin == until) {
return UC_ERR_OK;
}
switch (uc->arch) {
default:
break;