mbox series

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

Message ID 20210222223901.2792336-1-f4bug@amsat.org
Headers show
Series target/mips: Extract MXU code to new mxu_translate.c file | expand


Philippe Mathieu-Daudé Feb. 22, 2021, 10:38 p.m. UTC

This is a respin of "Extract XBurst Media eXtension Unit
translation routines" v2:

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.



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