mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
aarch64: Add constants for fields in the PMEVTYPERn_EL0 event registers.
Reviewed by: andrew Sponsored by: University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D34526
This commit is contained in:
parent
425e57e7a2
commit
456d57a66d
|
@ -1340,7 +1340,7 @@
|
|||
* PMEVCNTRn_EL0_op2 holds the lower 3 bits of 'n'
|
||||
*/
|
||||
|
||||
/* PMEVTYPER<n>_EL0 */
|
||||
/* PMEVTYPER<n>_EL0 - Performance Monitoring Event Type */
|
||||
#define PMEVTYPER_EL0_op0 3
|
||||
#define PMEVTYPER_EL0_op1 3
|
||||
#define PMEVTYPER_EL0_CRn 14
|
||||
|
@ -1349,6 +1349,15 @@
|
|||
* PMEVTYPERn_EL0_CRm[1:0] holds the upper 2 bits of 'n'
|
||||
* PMEVTYPERn_EL0_op2 holds the lower 3 bits of 'n'
|
||||
*/
|
||||
#define PMEVTYPER_EVTCOUNT_MASK 0x000003ff /* ARMv8.0 */
|
||||
#define PMEVTYPER_EVTCOUNT_8_1_MASK 0x0000ffff /* ARMv8.1+ */
|
||||
#define PMEVTYPER_MT (1 << 25) /* Multithreading */
|
||||
#define PMEVTYPER_M (1 << 26) /* Secure EL3 filtering */
|
||||
#define PMEVTYPER_NSH (1 << 27) /* Non-secure hypervisor filtering */
|
||||
#define PMEVTYPER_NSU (1 << 28) /* Non-secure user filtering */
|
||||
#define PMEVTYPER_NSK (1 << 29) /* Non-secure kernel filtering */
|
||||
#define PMEVTYPER_U (1 << 30) /* User filtering */
|
||||
#define PMEVTYPER_P (1 << 31) /* Privileged filtering */
|
||||
|
||||
/* PMINTENCLR_EL1 */
|
||||
#define PMINTENCLR_EL1 MRS_REG(PMINTENCLR_EL1)
|
||||
|
|
Loading…
Reference in a new issue