]> git.proxmox.com Git - mirror_qemu.git/commit
target/mips: convert to TranslatorOps
authorEmilio G. Cota <cota@braap.org>
Fri, 16 Feb 2018 01:52:07 +0000 (20:52 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (10:12 -0700)
commit18f440edfb974feaff8490d4861844b5a2b7a3b5
tree3aed9bb5768a1c24912100804d3eb99b452fa7b6
parent12be92588cf26a192f1b62846906983fc1e102a7
target/mips: convert to TranslatorOps

Notes:

- DISAS_TOO_MANY replaces the former "break" in the translation loop.
  However, care must be taken not to overwrite a previous condition
  in is_jmp; that's why in translate_insn we first check is_jmp and
  return if it's != DISAS_NEXT.

- Added an assert in translate_insn, before exiting due to an exception,
  to make sure that is_jmp is set to DISAS_NORETURN (the exception
  generation function always sets it.)

- Added an assert for the default case in is_jmp's switch.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Yongbok Kim <yongbok.kim@mips.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/mips/translate.c