diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2025-03-07 10:08:21 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-03-07 10:08:21 +0000 |
| commit | 47e2c5510f8c13310bfe738ebaa913bb52feca2a (patch) | |
| tree | aef0dc9b5c813099385f8f402e2682c3572b3062 | |
| parent | f9f99d7ca522339c1de2292f132bb8ddc3471c39 (diff) | |
| download | focaccia-qemu-47e2c5510f8c13310bfe738ebaa913bb52feca2a.tar.gz focaccia-qemu-47e2c5510f8c13310bfe738ebaa913bb52feca2a.zip | |
target/arm: Document the architectural names of our GTIMERs
As we are about to add more physical and virtual timers let's make it clear what each timer does. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20250204125009.2281315-8-peter.maydell@linaro.org [PMM: Add timer register name prefix to each comment] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| -rw-r--r-- | target/arm/gtimer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/arm/gtimer.h b/target/arm/gtimer.h index 0e89b8e58d..d49c63cbf8 100644 --- a/target/arm/gtimer.h +++ b/target/arm/gtimer.h @@ -10,11 +10,11 @@ #define TARGET_ARM_GTIMER_H enum { - GTIMER_PHYS = 0, - GTIMER_VIRT = 1, - GTIMER_HYP = 2, - GTIMER_SEC = 3, - GTIMER_HYPVIRT = 4, + GTIMER_PHYS = 0, /* CNTP_* ; EL1 physical timer */ + GTIMER_VIRT = 1, /* CNTV_* ; EL1 virtual timer */ + GTIMER_HYP = 2, /* CNTHP_* ; EL2 physical timer */ + GTIMER_SEC = 3, /* CNTPS_* ; EL3 physical timer */ + GTIMER_HYPVIRT = 4, /* CNTHV_* ; EL2 virtual timer ; only if FEAT_VHE */ GTIMER_S_EL2_PHYS = 5, /* CNTHPS_* ; only if FEAT_SEL2 */ GTIMER_S_EL2_VIRT = 6, /* CNTHVS_* ; only if FEAT_SEL2 */ #define NUM_GTIMERS 7 |