Re: [PATCH 06/10] target/arm: Detect overflow when calculating next PMU interrupt

2022-08-11 Thread Richard Henderson
On 8/11/22 10:16, Peter Maydell wrote: In pmccntr_op_finish() and pmevcntr_op_finish() we calculate the next point at which we will get an overflow and need to fire the PMU interrupt or set the overflow flag. We do this by calculating the number of nanoseconds to the overflow event and then addi

[PATCH 06/10] target/arm: Detect overflow when calculating next PMU interrupt

2022-08-11 Thread Peter Maydell
In pmccntr_op_finish() and pmevcntr_op_finish() we calculate the next point at which we will get an overflow and need to fire the PMU interrupt or set the overflow flag. We do this by calculating the number of nanoseconds to the overflow event and then adding it to qemu_clock_get_ns(QEMU_CLOCK_VIR