CR16C: cpu: fix gen_goto to actually use the slot ID provided
This commit is contained in:
parent
d0b2f99c50
commit
fd3b855757
1 changed files with 2 additions and 2 deletions
|
|
@ -127,9 +127,9 @@ static uint32_t reloc_abs20(DisasContext *ctx, uint32_t addr) {
|
|||
|
||||
static void gen_goto(DisasContextBase *dcbase, vaddr dest, uint8_t slot) {
|
||||
if(translator_use_goto_tb(dcbase, dest)) {
|
||||
tcg_gen_goto_tb(0);
|
||||
tcg_gen_goto_tb(slot);
|
||||
tcg_gen_movi_i32(pc, dest);
|
||||
tcg_gen_exit_tb(dcbase->tb, 0);
|
||||
tcg_gen_exit_tb(dcbase->tb, slot);
|
||||
}
|
||||
else {
|
||||
tcg_gen_movi_i32(pc, dest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue