[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/13] target/arm: Implement ARMv8.1-PMU extension
From: |
Richard Henderson |
Subject: |
Re: [PATCH 09/13] target/arm: Implement ARMv8.1-PMU extension |
Date: |
Tue, 11 Feb 2020 10:45:55 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/11/20 9:37 AM, Peter Maydell wrote:
> The ARMv8.1-PMU extension requires:
> * the evtCount field in PMETYPER<n>_EL0 is 16 bits, not 10
> * MDCR_EL2.HPMD allows event counting to be disabled at EL2
> * two new required events, STALL_FRONTEND and STALL_BACKEND
> * ID register bits in ID_AA64DFR0_EL1 and ID_DFR0
>
> We already implement the 16-bit evtCount field and the
> HPMD bit, so all that is missing is the two new events:
> STALL_FRONTEND
> "counts every cycle counted by the CPU_CYCLES event on which no
> operation was issued because there are no operations available
> to issue to this PE from the frontend"
> STALL_BACKEND
> "counts every cycle counted by the CPU_CYCLES event on which no
> operation was issued because the backend is unable to accept
> any available operations from the frontend"
>
> QEMU never stalls in this sense, so our implementation is trivial:
> always return a zero count.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> target/arm/helper.c | 32 ++++++++++++++++++++++++++++++--
> 1 file changed, 30 insertions(+), 2 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- Re: [PATCH 03/13] target/arm: Define and use any_predinv isar_feature test, (continued)
- [PATCH 02/13] target/arm: Add isar_feature_any_fp16 and document naming/usage conventions, Peter Maydell, 2020/02/11
- [PATCH 06/13] target/arm: Use FIELD macros for clearing ID_DFR0 PERFMON field, Peter Maydell, 2020/02/11
- [PATCH 09/13] target/arm: Implement ARMv8.1-PMU extension, Peter Maydell, 2020/02/11
- Re: [PATCH 09/13] target/arm: Implement ARMv8.1-PMU extension,
Richard Henderson <=
- [PATCH 05/13] target/arm: Add and use FIELD definitions for ID_AA64DFR0_EL1, Peter Maydell, 2020/02/11
- [PATCH 01/13] target/arm: Add _aa32_ to isar_feature functions testing 32-bit ID registers, Peter Maydell, 2020/02/11
- [PATCH 11/13] target/arm: Provide ARMv8.4-PMU in '-cpu max', Peter Maydell, 2020/02/11
- [PATCH 08/13] target/arm: Add _aa64_ and _any_ versions of pmu_8_1 isar checks, Peter Maydell, 2020/02/11