[PATCH 0/5] target/mips: Make check_cp0_enabled() return a boolean

Philippe Mathieu-Daudé posted 5 patches 3 years ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210420193453.1913810-1-f4bug@amsat.org
Maintainers: Jiaxun Yang <jiaxun.yang@flygoat.com>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Aurelien Jarno <aurelien@aurel32.net>
target/mips/translate.h |   7 +-
target/mips/translate.c | 178 ++++++++++++++++++++--------------------
2 files changed, 96 insertions(+), 89 deletions(-)
[PATCH 0/5] target/mips: Make check_cp0_enabled() return a boolean
Posted by Philippe Mathieu-Daudé 3 years ago
Address the following remark from Richard:

 (1) check_cp0_enabled must return a boolean, so that the
     caller can avoid emitting dead code after the
     exception is emitted.

https://www.mail-archive.com/qemu-devel@nongnu.org/msg800114.html

Based-on: <20210420175426.1875746-1-f4bug@amsat.org>

Philippe Mathieu-Daudé (5):
  target/mips: Remove duplicated check_cp0_enabled() calls in gen_cp0()
  target/mips: Simplify CP0 check in nanoMIPS P.LS.E0 EVA pool
  target/mips: Make check_cp0_enabled() return a boolean
  target/mips: Use check_cp0_enabled() returned value
  target/mips: Restrict EVA opcodes to system emulation

 target/mips/translate.h |   7 +-
 target/mips/translate.c | 178 ++++++++++++++++++++--------------------
 2 files changed, 96 insertions(+), 89 deletions(-)

-- 
2.26.3