execute cpus in same thread as uc_emu_start()

note: I'm sure this makes some dead code
This commit is contained in:
Ryan Hileman
2016-03-23 22:31:23 -07:00
parent 86823f53da
commit f0af8f8282
3 changed files with 8 additions and 37 deletions

7
uc.c
View File

@@ -559,14 +559,13 @@ uc_err uc_emu_start(uc_engine* uc, uint64_t begin, uint64_t until, uint64_t time
uc->addr_end = until;
if (timeout)
enable_emu_timer(uc, timeout * 1000); // microseconds -> nanoseconds
if (uc->vm_start(uc)) {
return UC_ERR_RESOURCE;
}
if (timeout)
enable_emu_timer(uc, timeout * 1000); // microseconds -> nanoseconds
uc->pause_all_vcpus(uc);
// emulation is done
uc->emulation_done = true;