Merge pull request #28 from sunho/fix-until

unicorn: fix uc_emu_start until if end instruction is in another tlb
This commit is contained in:
LC 2020-08-05 12:23:38 -04:00 committed by GitHub
commit 43ec6383ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,9 @@ void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
* the "run until" address. */
if (tb->pc == cpu->uc->addr_end) {
gen_tb_start(tcg_ctx, tb);
// This should catch that instruction is at the end
// and generate appropriate halting code.
ops->translate_insn(db, cpu);
goto tb_end;
}