CR16C: cpu: fix gen_goto to actually use the slot ID provided

This commit is contained in:
fridtjof 2025-09-02 23:01:54 +02:00
parent d0b2f99c50
commit fd3b855757

View file

@ -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);