Skip to content

RFC Implementing FEAT_BTIE

Mohamed Mediouni qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11target/arm: ptw: implement enhanced guarded page bitinclude/hw/core/cpu.h target/arm/cpu-features.h target/arm/ptw.c+34 -90 replies
2/11target/arm: cpu: handle 3-bit BTYPEtarget/arm/cpu.h+8 -40 replies
3/11target/arm: translate-a64: query whether the page is an EGPtarget/arm/tcg/translate-a64.c+30 -20 replies
4/11target/arm: translate-a64: implementing btype_destination_ok for BTIEtarget/arm/tcg/translate-a64.c+32 -00 replies
5/11target/arm: translate-a64: determine BTI state ahead of timetarget/arm/tcg/helper-a64-defs.h target/arm/tcg/helper-a64.c target/arm/tcg/translate-a64.c +1 more+39 -150 replies
6/11target/arm: translate-a64: set btype on returnstarget/arm/tcg/translate-a64.c+9 -00 replies
7/11target/arm: translate-a64: set BTYPE for b/bltarget/arm/tcg/translate-a64.c+32 -20 replies
8/11target/arm: translate-a64: set BTYPE on conditional branchestarget/arm/tcg/translate-a64.c+58 -50 replies
9/11target/arm: translate-a64: set BTYPE for an always taken B.condtarget/arm/tcg/translate-a64.c+1 -00 replies
10/11target/arm: translate-a64: rework BTI for BRtarget/arm/tcg/helper-a64-defs.h target/arm/tcg/helper-a64.c target/arm/tcg/translate-a64.c+4 -320 replies
11/11target/arm: cpu64: add FAT architecturetarget/arm/internals.h target/arm/tcg/cpu64.c+22 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 00/11] Implementing FEAT_BTIE

FEAT_BTIE is an Arm extension part of Future Architecture Technologies.

It has a high level overview documentation at:
https://support.arm.com/documentation/109697/2026_09/Feature-descriptions/Future-Architecture-Technologies?lang=en

And is documented more in detail in the Arm FAT system register and instruction documentation, together with the pseudocode in the XML provided as part of the Exploration Tools.

FEAT_BTIE is a prerequisite for FEAT_S1POE2.

Mohamed Mediouni (11):
target/arm: ptw: implement enhanced guarded page bit target/arm: cpu: handle 3-bit BTYPE
target/arm: translate-a64: query whether the page is an EGP target/arm: translate-a64: implementing btype_destination_ok for BTIE target/arm: translate-a64: determine BTI state ahead of time target/arm: translate-a64: set btype on returns target/arm: translate-a64: set BTYPE for b/bl
target/arm: translate-a64: set BTYPE on conditional branches target/arm: translate-a64: set BTYPE for an always taken B.cond target/arm: translate-a64: rework BTI for BR
target/arm: cpu64: add FAT architecture

 include/hw/core/cpu.h            |   4 +
 target/arm/cpu-features.h        |   5 +
 target/arm/cpu.h                 |  12 +-
 target/arm/internals.h           |   1 +
 target/arm/ptw.c                 |  34 +++--
 target/arm/tcg/cpu64.c           |  21 ++++
 target/arm/tcg/helper-a64-defs.h |   3 +-
 target/arm/tcg/helper-a64.c      |  41 ++----
 target/arm/tcg/translate-a64.c   | 207 ++++++++++++++++++++++++++++---
 target/arm/tcg/translate.h       |   2 +
 10 files changed, 265 insertions(+), 65 deletions(-)
Signature · 1 line
2.54.0 (Apple Git-157)