We plan to use get_id_aa64dfr0() for SPE tests. So let's move this latter in processor.h header. Signed-off-by: Eric Auger <eric.auger@xxxxxxxxxx> --- arm/pmu.c | 1 - lib/arm64/asm/processor.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arm/pmu.c b/arm/pmu.c index cece53e..e2cb51e 100644 --- a/arm/pmu.c +++ b/arm/pmu.c @@ -167,7 +167,6 @@ static void test_overflow_interrupt(void) {} #define ID_DFR0_PMU_V3_8_5 0b0110 #define ID_DFR0_PMU_IMPDEF 0b1111 -static inline uint32_t get_id_aa64dfr0(void) { return read_sysreg(id_aa64dfr0_el1); } static inline uint32_t get_pmcr(void) { return read_sysreg(pmcr_el0); } static inline void set_pmcr(uint32_t v) { write_sysreg(v, pmcr_el0); } static inline uint64_t get_pmccntr(void) { return read_sysreg(pmccntr_el0); } diff --git a/lib/arm64/asm/processor.h b/lib/arm64/asm/processor.h index 02665b8..11b7564 100644 --- a/lib/arm64/asm/processor.h +++ b/lib/arm64/asm/processor.h @@ -88,6 +88,11 @@ static inline uint64_t get_mpidr(void) return read_sysreg(mpidr_el1); } +static inline uint64_t get_id_aa64dfr0(void) +{ + return read_sysreg(id_aa64dfr0_el1); +} + #define MPIDR_HWID_BITMASK 0xff00ffffff extern int mpidr_to_cpu(uint64_t mpidr); -- 2.21.3