target/arm: Enable PAuth for -cpu max

Backports commit 1ce32e47db52e3511132c7104770eae65d412144 from qemu
This commit is contained in:
Richard Henderson 2019-01-22 16:38:05 -05:00 committed by Lioncash
parent 6e1c9df11f
commit 7f03b024d2
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -261,6 +261,10 @@ static void aarch64_max_initfn(struct uc_struct *uc, Object *obj, void *opaque)
t = cpu->isar.id_aa64isar1;
t = FIELD_DP64(t, ID_AA64ISAR1, FCMA, 1);
t = FIELD_DP64(t, ID_AA64ISAR1, APA, 1); /* PAuth, architected only */
t = FIELD_DP64(t, ID_AA64ISAR1, API, 0);
t = FIELD_DP64(t, ID_AA64ISAR1, GPA, 1);
t = FIELD_DP64(t, ID_AA64ISAR1, GPI, 0);
cpu->isar.id_aa64isar1 = t;
t = cpu->isar.id_aa64pfr0;