Commit c7459633 authored by Richard Henderson's avatar Richard Henderson Committed by Peter Maydell
Browse files

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: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-id: 20200626033144.790098-46-richard.henderson@linaro.org
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent e4d5bf4f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;