Skip to contentSkip to conversation

target/arm: Implement MTE3

PATCH Applied Peter Collingbourne 2 participants 2 messages Jun 16, 2021 – Jun 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 target/arm: Implement MTE3

MTE3 introduces an asymmetric tag checking mode, in which loads are checked synchronously and stores are checked asynchronously. Add support for it.

---
v2:
- remove unused argument

 target/arm/cpu64.c      |  2 +-
 target/arm/mte_helper.c | 82 +++++++++++++++++++++++++----------------
 2 files changed, 52 insertions(+), 32 deletions(-)
target/arm/cpu64.c +1 -1
index 1c23187d1a..c7a1626bec 100644
@@ -683,7 +683,7 @@ static void aarch64_max_initfn(Object *obj)
          * during realize if the board provides no tag memory, much like
          * we do for EL2 with the virtualization=on property.
          */
-        t = FIELD_DP64(t, ID_AA64PFR1, MTE, 2);
+        t = FIELD_DP64(t, ID_AA64PFR1, MTE, 3);
         cpu->isar.id_aa64pfr1 = t;
 
         t = cpu->isar.id_aa64mmfr0;
target/arm/mte_helper.c +51 -31

108 lines not on this page · raw message

Signature · 1 line
2.32.0.272.g935e593368-goog
#1 lore raw
Quoted 7 lines · Peter Collingbourne

MTE3 introduces an asymmetric tag checking mode, in which loads are checked synchronously and stores are checked asynchronously. Add support for it.

Quoted 7 lines

---
v2:
- remove unused argument

 target/arm/cpu64.c      |  2 +-
 target/arm/mte_helper.c | 82 +++++++++++++++++++++++++----------------
 2 files changed, 52 insertions(+), 32 deletions(-)

Applied to target-arm.next, thanks.

-- PMM