mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00:00
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:
commit
43ec6383ef
|
@ -57,6 +57,9 @@ void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
|
||||||
* the "run until" address. */
|
* the "run until" address. */
|
||||||
if (tb->pc == cpu->uc->addr_end) {
|
if (tb->pc == cpu->uc->addr_end) {
|
||||||
gen_tb_start(tcg_ctx, tb);
|
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;
|
goto tb_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue