OSDN Git Service

target/openrisc: convert to TranslatorOps
authorEmilio G. Cota <cota@braap.org>
Sun, 18 Feb 2018 01:04:40 +0000 (20:04 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (10:12 -0700)
commita4fd3ec3c7299f6a0f99e89aeb8a52c6538ca27b
tree814297a953897c06a05c987ffe11258de1818d8a
parent1ffa4bced09840ffbb0802260492d3a22c5701d3
target/openrisc: convert to TranslatorOps

Notes:

- Changed the num_insns test in insn_start to check for
  dc->base.num_insns > 1, since when tb_start is first
  called in a TB, base.num_insns is already set to 1.

- Removed DISAS_NEXT from the switch in tb_stop; use
  DISAS_TOO_MANY instead.

- Added an assert_not_reached on tb_stop for DISAS_NEXT
  and the default case.

- Merged the two separate log_target_disas calls into the
  disas_log op.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: Stafford Horne <shorne@gmail.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/openrisc/translate.c