Skip to content

Commit

Permalink
Cortex-A72: add events.h
Browse files Browse the repository at this point in the history
This allows sel4bench for be build for RasPi4

Signed-off-by: Axel Heider <axel.heider@hensoldt-cyber.de>
  • Loading branch information
Axel Heider committed Mar 25, 2021
1 parent fcbc194 commit f378e86
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* ARM Cortex-A72 performance monitoring events
*
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
* Copyright 2021, HENSOLDT Cyber GmbH
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#pragma once

// Events are defined in the Cortex-A72 TRM. Most recent version as of today is
// "ARM 100095_0003_06_en" (2016-Dec-01, "Second release for r0p3"),
// section 11.8 "Performance Monitor Unit", "Events". The definitions for the
// Cortex-A72 core are aligned with the ARM Architecture Reference Manual for
// ARMv8. Most recent version as of today is "ARM DDI 0487G.a" (2021-Jan-22,
// "Initial Armv8.7 EAC release"). See section K3.1 "Arm recommendations for
// IMPLEMENTATION DEFINED event numbers"

#define SEL4BENCH_EVENT_BUS_ACCESS_LD 0x60
#define SEL4BENCH_EVENT_BUS_ACCESS_ST 0x61

#define SEL4BENCH_EVENT_BR_INDIRECT_SPEC 0x7A

#define SEL4BENCH_EVENT_EXC_IRQ 0x86
#define SEL4BENCH_EVENT_EXC_FIQ 0x87

0 comments on commit f378e86

Please sign in to comment.