target/arm: Enable ARMv8.2-UAO in -cpu max

Backports commit e11f0eb6724571adb812a3ce5269c41586e0262b from qemu
This commit is contained in:
Richard Henderson 2020-03-21 17:51:43 -04:00 committed by Lioncash
parent 18a86780ee
commit 57f0aa3044

View file

@ -320,6 +320,10 @@ static void aarch64_max_initfn(struct uc_struct *uc, Object *obj, void *opaque)
t = FIELD_DP64(t, ID_AA64MMFR1, PAN, 2); /* ATS1E1 */
cpu->isar.id_aa64mmfr1 = t;
t = cpu->isar.id_aa64mmfr2;
t = FIELD_DP64(t, ID_AA64MMFR2, UAO, 1);
cpu->isar.id_aa64mmfr2 = t;
/* Replicate the same data to the 32-bit id registers. */
u = cpu->isar.id_isar5;
u = FIELD_DP32(u, ID_ISAR5, AES, 2); /* AES + PMULL */