target/arm: Treat PMCCNTR as alias of PMCCNTR_EL0

They share the same underlying state

Backports commit 169c893874977eee8303a6dad4a3f25c5464858f from qemu
This commit is contained in:
Aaron Lindsay 2018-04-26 09:07:48 -04:00 committed by Lioncash
parent e1bffbf7df
commit e1d021ad74
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1193,7 +1193,7 @@ static const ARMCPRegInfo v7_cp_reginfo[] = {
PL0_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.c9_pmselr), {0, 0},
pmreg_access_selr, NULL, pmselr_write, NULL, raw_write, },
{ "PMCCNTR", 15,9,13, 0,0,0, 0,
ARM_CP_IO, PL0_RW, 0, NULL, 0, 0, {0, 0},
ARM_CP_ALIAS | ARM_CP_IO, PL0_RW, 0, NULL, 0, 0, {0, 0},
pmreg_access_ccntr, pmccntr_read, pmccntr_write32, },
{ "PMCCNTR_EL0", 0,9,13, 3,3,0, ARM_CP_STATE_AA64,
ARM_CP_IO, PL0_RW, 0, NULL, 0, 0, {0, 0},