Skip to content

target/mips: Make 'cpu-qom.h' target agnostic

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8cpus: Open code OBJECT_DECLARE_TYPE() in OBJECT_DECLARE_CPU_TYPE()include/hw/core/cpu.h+6 -10 replies
2/8target/mips: Declare CPU QOM types using DEFINE_TYPES() macrotarget/mips/cpu.c+13 -101 reply
3/8target/mips: Make MIPS_CPU common to new MIPS32_CPU / MIPS64_CPU typestarget/mips/cpu-qom.h target/mips/cpu.c+16 -71 reply
4/8target/mips: Prefix MMU API with 'mips_'target/mips/cpu.c target/mips/tcg/system/tlb_helper.c target/mips/tcg/tcg-internal.h+3 -31 reply
5/8target/mips: Replace ldtul_p() -> ldn_p(sizeof(target_ulong))target/mips/gdbstub.c+5 -41 reply
6/8target/mips: Introduce mips_cpu_is_64bit() helpertarget/mips/cpu-qom.h target/mips/cpu.c+8 -03 replies
7/8target/mips: Get CPU register size using mips_cpu_is_64bit()target/mips/gdbstub.c+6 -11 reply
8/8target/mips: Introduce mips_env_64bit_enabled() helpertarget/mips/internal.h+5 -02 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonPierrick BouvierAnton Johansson
SeriesR-b
1/8A-b
2/8R-b R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH-for-10.1 0/8] target/mips: Make 'cpu-qom.h' target agnostic

- Remove the TARGET_MIPS64 use in 'cpu-qom.h' to make it target agnostic
- Introduce mips_cpu_is_64bit() as a runtime check for compile time TARGET_MIPS64 definition
- Replace the ldtul_p() gdbstub call by ldn_p()
- Rename few symbols to avoid future linkage clash

Philippe Mathieu-Daudé (8):
cpus: Open code OBJECT_DECLARE_TYPE() in OBJECT_DECLARE_CPU_TYPE() target/mips: Declare CPU QOM types using DEFINE_TYPES() macro target/mips: Make MIPS_CPU common to new MIPS32_CPU / MIPS64_CPU types target/mips: Prefix MMU API with 'mips_'
target/mips: Replace ldtul_p() -> ldn_p(sizeof(target_ulong)) target/mips: Introduce mips_cpu_is_64bit() helper target/mips: Get CPU register size using mips_cpu_is_64bit() target/mips: Introduce mips_env_64bit_enabled() helper

 include/hw/core/cpu.h               |  7 ++++-
 target/mips/cpu-qom.h               | 14 +++++-----
 target/mips/internal.h              |  5 ++++
 target/mips/tcg/tcg-internal.h      |  2 +-
 target/mips/cpu.c                   | 42 ++++++++++++++++++++---------
 target/mips/gdbstub.c               | 14 +++++++---
 target/mips/tcg/system/tlb_helper.c |  2 +-
 7 files changed, 61 insertions(+), 25 deletions(-)
Signature · 1 line
2.47.1