From 6f06f383eaf945cfbf4d2f6794daf72e5e8fbe54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 3 Mar 2021 20:11:08 -0500 Subject: [PATCH] target/arm: enable Small Translation tables in max CPU Backports 078e9fe3cbd6894fb6e420d8b53f304a3d5c0464 --- qemu/target/arm/cpu64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu/target/arm/cpu64.c b/qemu/target/arm/cpu64.c index e07740de..95571490 100644 --- a/qemu/target/arm/cpu64.c +++ b/qemu/target/arm/cpu64.c @@ -321,6 +321,8 @@ static void aarch64_max_initfn(struct uc_struct *uc, Object *obj, void *opaque) t = cpu->isar.id_aa64mmfr2; t = FIELD_DP64(t, ID_AA64MMFR2, UAO, 1); + t = FIELD_DP64(t, ID_AA64MMFR2, CNP, 1); /* TTCNP */ + t = FIELD_DP64(t, ID_AA64MMFR2, ST, 1); /* TTST */ cpu->isar.id_aa64mmfr2 = t; /* Replicate the same data to the 32-bit id registers. */