unicorn: fix uc_emu_start until if end instruction is in another tlb

This commit is contained in:
Sunho Kim 2020-08-05 03:18:51 +09:00
parent cf84b2ecac
commit d56c79776e

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;
}