Skip to content

Commit c745963

Browse files
rth7680pm215
authored andcommitted
target/arm: Enable MTE
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 <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
1 parent e4d5bf4 commit c745963

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

target/arm/cpu64.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,11 @@ static void aarch64_max_initfn(Object *obj)
654654

655655
t = cpu->isar.id_aa64pfr1;
656656
t = FIELD_DP64(t, ID_AA64PFR1, BT, 1);
657+
/*
658+
* Begin with full support for MTE; will be downgraded to MTE=1
659+
* during realize if the board provides no tag memory.
660+
*/
661+
t = FIELD_DP64(t, ID_AA64PFR1, MTE, 2);
657662
cpu->isar.id_aa64pfr1 = t;
658663

659664
t = cpu->isar.id_aa64mmfr1;

0 commit comments

Comments
 (0)