mbox series

[0/7] target/mips: Add translate.h and fpu_translate.h headers

Message ID 20201207235539.4070364-1-f4bug@amsat.org
Headers show
Series target/mips: Add translate.h and fpu_translate.h headers | expand

Message

Philippe Mathieu-Daudé Dec. 7, 2020, 11:55 p.m. UTC
As the 'extract MSA' series keep growing, yet another
preliminary series.

Basically we add declarations for everything that will
be reused by code extracted from the big translate.c.

Doing so now, we avoid the intermediate step of using
.c.inc files, and we compile as different objects.
(We would have to do this later anyway).
Slower, as it involve more series, but we can bisect.

This series is common to the other 'extract XYZ from
translate.c' series.

Regards,

Phil.

Based-on: mips-next (https://gitlab.com/philmd/qemu/-/tree/mips-next)

Philippe Mathieu-Daudé (7):
  target/mips/translate: Extract DisasContext structure
  target/mips/translate: Add declarations for generic code
  target/mips: Use FloatRoundMode enum for FCR31 modes conversion
  target/mips: Extract FPU helpers to 'fpu_helper.h'
  target/mips/fpu_helper: Remove unused headers
  target/mips: Declare generic FPU functions in 'fpu_translate.h'
  target/mips: Extract FPU specific definitions to fpu_translate.h

 target/mips/fpu_helper.h    |  59 +++++++++++++
 target/mips/fpu_translate.h |  96 +++++++++++++++++++++
 target/mips/internal.h      |  49 -----------
 target/mips/translate.h     |  83 ++++++++++++++++++
 linux-user/mips/cpu_loop.c  |   1 +
 target/mips/fpu_helper.c    |   7 +-
 target/mips/gdbstub.c       |   1 +
 target/mips/kvm.c           |   1 +
 target/mips/machine.c       |   1 +
 target/mips/msa_helper.c    |   1 +
 target/mips/op_helper.c     |   1 +
 target/mips/translate.c     | 163 +++++-------------------------------
 12 files changed, 267 insertions(+), 196 deletions(-)
 create mode 100644 target/mips/fpu_helper.h
 create mode 100644 target/mips/fpu_translate.h
 create mode 100644 target/mips/translate.h