[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v9 14/14] target/arm: Send interrupts on PMU cou
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v9 14/14] target/arm: Send interrupts on PMU counter overflow |
Date: |
Thu, 6 Dec 2018 16:03:51 +0000 |
On Wed, 5 Dec 2018 at 13:44, Aaron Lindsay <address@hidden> wrote:
>
> Setup a QEMUTimer to get a callback when we expect counters to next
> overflow and trigger an interrupt at that time.
>
> Signed-off-by: Aaron Lindsay <address@hidden>
> Signed-off-by: Aaron Lindsay <address@hidden>
> ---
> target/arm/cpu.c | 12 +++++
> target/arm/cpu.h | 7 +++
> target/arm/helper.c | 126 +++++++++++++++++++++++++++++++++++++++++---
> 3 files changed, 139 insertions(+), 6 deletions(-)
>
> --- a/target/arm/cpu.h
> +++ b/target/arm/cpu.h
> @@ -733,6 +733,8 @@ struct ARMCPU {
>
> /* Timers used by the generic (architected) timer */
> QEMUTimer *gt_timer[NUM_GTIMERS];
> + /* Timer used by the PMU */
> + QEMUTimer *pmu_timer;
We don't seem to migrate this timer state. Is that OK? If so,
a brief comment somewhere with the rationale would be helpful.
thanks
-- PMM
- [Qemu-devel] [PATCH v9 12/14] target/arm: PMU: Set PMCR.N to 4, (continued)
- [Qemu-devel] [PATCH v9 11/14] target/arm: PMU: Add instruction and cycle events, Aaron Lindsay, 2018/12/05
- [Qemu-devel] [PATCH v9 10/14] target/arm: Finish implementation of PM[X]EVCNTR and PM[X]EVTYPER, Aaron Lindsay, 2018/12/05
- [Qemu-devel] [PATCH v9 13/14] target/arm: Implement PMSWINC, Aaron Lindsay, 2018/12/05
- [Qemu-devel] [PATCH v9 14/14] target/arm: Send interrupts on PMU counter overflow, Aaron Lindsay, 2018/12/05
- Re: [Qemu-devel] [PATCH v9 14/14] target/arm: Send interrupts on PMU counter overflow,
Peter Maydell <=