[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 45/46] target/arm: Enable MTE
From: |
Richard Henderson |
Subject: |
[PATCH v9 45/46] target/arm: Enable MTE |
Date: |
Thu, 25 Jun 2020 20:31:43 -0700 |
We now implement all of the components of MTE, without actually
supporting any tagged memory. All MTE instructions will work,
trivially, so we can enable support.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v6: Delay user-only cpu reset bits to the user-only patch set.
v9: Add some commentary (pmm)
---
target/arm/cpu64.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
index a0c1d8894b..a2f4733eed 100644
--- a/target/arm/cpu64.c
+++ b/target/arm/cpu64.c
@@ -654,6 +654,11 @@ static void aarch64_max_initfn(Object *obj)
t = cpu->isar.id_aa64pfr1;
t = FIELD_DP64(t, ID_AA64PFR1, BT, 1);
+ /*
+ * Begin with full support for MTE; will be downgraded to MTE=1
+ * during realize if the board provides no tag memory.
+ */
+ t = FIELD_DP64(t, ID_AA64PFR1, MTE, 2);
cpu->isar.id_aa64pfr1 = t;
t = cpu->isar.id_aa64mmfr1;
--
2.25.1
- [PATCH v9 39/46] target/arm: Implement data cache set allocation tags, (continued)
- [PATCH v9 39/46] target/arm: Implement data cache set allocation tags, Richard Henderson, 2020/06/25
- [PATCH v9 37/46] target/arm: Add mte helpers for sve scatter/gather memory ops, Richard Henderson, 2020/06/25
- [PATCH v9 38/46] target/arm: Complete TBI clearing for user-only for SVE, Richard Henderson, 2020/06/25
- [PATCH v9 40/46] target/arm: Set PSTATE.TCO on exception entry, Richard Henderson, 2020/06/25
- [PATCH v9 41/46] target/arm: Always pass cacheattr to get_phys_addr, Richard Henderson, 2020/06/25
- [PATCH v9 42/46] target/arm: Cache the Tagged bit for a page in MemTxAttrs, Richard Henderson, 2020/06/25
- [PATCH v9 43/46] target/arm: Create tagged ram when MTE is enabled, Richard Henderson, 2020/06/25
- [PATCH v9 44/46] target/arm: Add allocation tag storage for system mode, Richard Henderson, 2020/06/25
- [PATCH v9 45/46] target/arm: Enable MTE,
Richard Henderson <=
- [PATCH v9 46/46] target/arm: Add arm,armv8.5-memtag to dtb, Richard Henderson, 2020/06/25
- Re: [PATCH v9 00/46] target/arm: Implement ARMv8.5-MemTag, system mode, Richard Henderson, 2020/06/25
- Re: [PATCH v9 00/46] target/arm: Implement ARMv8.5-MemTag, system mode, no-reply, 2020/06/26
- Re: [PATCH v9 00/46] target/arm: Implement ARMv8.5-MemTag, system mode, no-reply, 2020/06/26
- Re: [PATCH v9 00/46] target/arm: Implement ARMv8.5-MemTag, system mode, no-reply, 2020/06/26
- Re: [PATCH v9 00/46] target/arm: Implement ARMv8.5-MemTag, system mode, Peter Maydell, 2020/06/26