Skip to content

target/arm: Remove some TARGET_AARCH64 uses (MTE & gdbstub)

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9target/arm: Remove uses of TARGET_AARCH64 in arch_dump.ctarget/arm/arch_dump.c+0 -61 reply
2/9target/arm: Remove use of TARGET_AARCH64 in dump.ctarget/arm/cpu.c+0 -111 reply
3/9target/arm: Remove use of TARGET_AARCH64 in arm_cpu_initfn()target/arm/cpu.c+17 -101 reply
4/9target/arm/mte: Include missing headers for GETPC()target/arm/tcg/mte_helper.c+2 -11 reply
5/9target/arm/mte: Reduce address_with_allocation_tag() scopetarget/arm/internals.h target/arm/tcg/mte_helper.c+5 -51 reply
6/9target/arm/mte: Rename 'mte_helper.h' as generic 'mte.h'target/arm/gdbstub64.c target/arm/tcg/mte.h target/arm/tcg/mte_helper.c+2 -21 reply
7/9target/arm/mte: Restrict MTE declarationstarget/arm/internals.h target/arm/tcg/helper-a64.c target/arm/tcg/meson.build +7 more+306 -2801 reply
8/9linux-user/arm: Implement MTE stubs for 32-bit user emulationlinux-user/aarch64/mte_user_helper.h linux-user/arm/meson.build linux-user/arm/mte_user_helper.c +1 more+50 -260 replies
9/9target/arm: Build Aarch64 gdbstub helpers indistinctlytarget/arm/gdbstub.c target/arm/internals.h target/arm/meson.build+2 -61 reply

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/9R-b
2/9R-b
3/9
4/9R-b
5/9R-b
6/9R-b
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH-for-10.1 0/9] target/arm: Remove some TARGET_AARCH64 uses (MTE & gdbstub)

We'd like to reduce the use on TARGET_$arch definitions. This series convert few to runtime checks, mostly in MTE and gdbstub.

Philippe Mathieu-Daudé (9):
target/arm: Remove uses of TARGET_AARCH64 in arch_dump.c target/arm: Remove use of TARGET_AARCH64 in dump.c target/arm: Remove use of TARGET_AARCH64 in arm_cpu_initfn() target/arm/mte: Include missing headers for GETPC() target/arm/mte: Reduce address_with_allocation_tag() scope target/arm/mte: Rename 'mte_helper.h' as generic 'mte.h' target/arm/mte: Restrict MTE declarations linux-user/arm: Implement MTE stubs for 32-bit user emulation target/arm: Build Aarch64 gdbstub helpers indistinctly

 linux-user/aarch64/mte_user_helper.h |  27 +---
 linux-user/arm/mte_user_helper.h     |  34 +++++
 target/arm/internals.h               | 128 +-----------------
 target/arm/tcg/mte.h                 | 190 +++++++++++++++++++++++++++
 target/arm/tcg/mte_helper.h          |  66 ----------
 target/arm/tcg/sve_ldst_internal.h   |   1 +
 linux-user/arm/mte_user_helper.c     |  13 ++
 target/arm/arch_dump.c               |   6 -
 target/arm/cpu.c                     |  38 +++---
 target/arm/gdbstub.c                 |   4 -
 target/arm/gdbstub64.c               |   2 +-
 target/arm/tcg/helper-a64.c          |   1 +
 target/arm/tcg/mte.c                 | 175 ++++++++++++++++++++++++
 target/arm/tcg/mte_helper.c          | 170 ++----------------------
 target/arm/tcg/sve_helper.c          |   1 +
 target/arm/tcg/translate-a64.c       |   1 +
 target/arm/tcg/translate-sve.c       |   1 +
 linux-user/arm/meson.build           |   2 +
 target/arm/meson.build               |   2 +-
 target/arm/tcg/meson.build           |   1 +
 20 files changed, 450 insertions(+), 413 deletions(-)
 create mode 100644 linux-user/arm/mte_user_helper.h
 create mode 100644 target/arm/tcg/mte.h
 delete mode 100644 target/arm/tcg/mte_helper.h
 create mode 100644 linux-user/arm/mte_user_helper.c
 create mode 100644 target/arm/tcg/mte.c
Signature · 1 line
2.47.1