OSDN Git Service

target/sh4: Fix translator.c assertion failure for gUSA
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 1 Jun 2018 23:55:52 +0000 (16:55 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 9 Jul 2018 17:34:04 +0000 (10:34 -0700)
commitbe0e3d7a1e148180fe1b89c7f93720db0607614e
treeee60f05b925f339af7e2f6a9cfbd69b053ff8aaf
parentec7eb2ae77cc207064e17ace048f7ec0c4b85d6f
target/sh4: Fix translator.c assertion failure for gUSA

The translator loop does not allow the tb_start hook to set
dc->base.is_jmp; the only hook allowed to do that is translate_insn.

Split the work between init_disas_context where we validate
the gUSA parameters, and translate_insn where we emit code.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/sh4/translate.c