target/mips: use lookup_and_goto_ptr on BS_STOP
authorEmilio G. Cota <cota@braap.org>
Wed, 11 Apr 2018 15:44:28 +0000 (11:44 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (10:12 -0700)
commitcd314a7d0190a03122ca0606ecf71b4b873a22c6
tree0b32ccbf1fe9cd23959437c95a4bf4a85e4ba3aa
parent6e61bc941025345ab01c48d116bef60bb8990406
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: Richard Henderson <richard.henderson@linaro.org>
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/mips/translate.c