[PATCH v3 00/10] target/mips: Extract MXU code to new mxu_translate.c file

Philippe Mathieu-Daudé posted 10 patches 3 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210222223901.2792336-1-f4bug@amsat.org
Maintainers: Aurelien Jarno <aurelien@aurel32.net>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, Jiaxun Yang <jiaxun.yang@flygoat.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>
There is a newer version of this series
target/mips/translate.h     |    4 +
target/mips/mxu_translate.c | 1625 +++++++++++++++++++
target/mips/translate.c     | 2909 +----------------------------------
target/mips/meson.build     |    1 +
4 files changed, 1645 insertions(+), 2894 deletions(-)
create mode 100644 target/mips/mxu_translate.c
[PATCH v3 00/10] target/mips: Extract MXU code to new mxu_translate.c file
Posted by Philippe Mathieu-Daudé 3 years, 2 months ago
Hi,

This is a respin of "Extract XBurst Media eXtension Unit
translation routines" v2:
https://lists.gnu.org/archive/html/qemu-devel/2020-11/msg05889.html

But instead of an included C file (.c.inc) we now have an
independent C unit. We gain faster recompilation time when
hacking translate.c or mxu_translate.c, and we also gain
in code maintainability.

Review should be trivial, with almost no logical code change.

Regards,

Phil.

Philippe Mathieu-Daudé (10):
  target/mips: Rewrite complex ifdef'ry
  target/mips: Remove XBurst Media eXtension Unit dead code
  target/mips: Remove unused CPUMIPSState* from MXU functions
  target/mips: Pass instruction opcode to decode_opc_mxu()
  target/mips: Extract decode_ase_mxu() from decode_opc_mxu()
  target/mips: Use OPC_MUL instead of OPC__MXU_MUL
  target/mips: Introduce mxu_translate_init() helper
  target/mips: Make mxu_translate_init() / decode_ase_mxu() proto public
  target/mips: Simplify 64-bit ifdef'ry of MXU code
  target/mips: Extract MXU code to new mxu_translate.c file

 target/mips/translate.h     |    4 +
 target/mips/mxu_translate.c | 1625 +++++++++++++++++++
 target/mips/translate.c     | 2909 +----------------------------------
 target/mips/meson.build     |    1 +
 4 files changed, 1645 insertions(+), 2894 deletions(-)
 create mode 100644 target/mips/mxu_translate.c

-- 
2.26.2