Commit cd314a7d authored by Emilio G. Cota's avatar Emilio G. Cota Committed by Richard Henderson
Browse files

target/mips: use lookup_and_goto_ptr on BS_STOP



The TB after BS_STOP is not fixed (e.g. helper_mtc0_hwrena
changes hflags, which ends up changing the TB flags via
cpu_get_tb_cpu_state). This requires a full lookup (i.e.
with flags) via lookup_and_goto_ptr instead of gen_goto_tb,
since the latter only looks at the PC for in-page goto's. Fix it.

Reported-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Suggested-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 6e61bc94
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -20343,7 +20343,8 @@ void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)
    } else {
        switch (ctx.bstate) {
        case BS_STOP:
            gen_goto_tb(&ctx, 0, ctx.pc);
            gen_save_pc(ctx.pc);
            tcg_gen_lookup_and_goto_ptr();
            break;
        case BS_NONE:
            save_cpu_state(&ctx, 0);