target-arm: Add PMUSERENR_EL0 register

The Linux kernel accesses this register early in its setup.

Backports commit 8a83ffc2dafad3499b87a736b17ab1b203fdb00b from qemu
This commit is contained in:
Alistair Francis 2018-02-20 15:36:27 -05:00 committed by Lioncash
parent b29e024f56
commit a8807cd3b9
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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 },