From a8807cd3b9cc1728d654265a996036bc263b73e9 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 20 Feb 2018 15:36:27 -0500 Subject: [PATCH] target-arm: Add PMUSERENR_EL0 register The Linux kernel accesses this register early in its setup. Backports commit 8a83ffc2dafad3499b87a736b17ab1b203fdb00b from qemu --- qemu/target-arm/helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu/target-arm/helper.c b/qemu/target-arm/helper.c index cf54082b..c484e94a 100644 --- a/qemu/target-arm/helper.c +++ b/qemu/target-arm/helper.c @@ -963,6 +963,9 @@ static const ARMCPRegInfo v7_cp_reginfo[] = { { "PMUSERENR", 15,9,14, 0,0,0, 0, 0, PL0_R | PL1_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.c9_pmuserenr), {0, 0}, NULL, NULL, pmuserenr_write, NULL, raw_write }, + { "PMUSERENR_EL0", 0,9,14,3,3,0, ARM_CP_STATE_AA64, ARM_CP_ALIAS, + PL0_R | PL1_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.c9_pmuserenr), {0, 0}, + NULL, NULL, pmuserenr_write, NULL, raw_write }, { "PMINTENSET", 15,9,14, 0,0,1, 0, 0, PL1_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.c9_pminten), {0, 0}, NULL, NULL, pmintenset_write, NULL, raw_write },