target/arm: Add a timer to predict PMU counter overflow
commit4e7beb0cc0f3fb05f1c055113debaa0c7d34fc89
authorAaron Lindsay OS <aaron@os.amperecomputing.com>
Fri, 1 Feb 2019 14:55:45 +0000 (1 14:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Feb 2019 14:55:45 +0000 (1 14:55 +0000)
tree25458d54a3b9c7dd01cac5c7bc666d9fde85cc7d
parentf4efb4b2a17528837cb445f9bdfaef8df4a5acf7
target/arm: Add a timer to predict PMU counter overflow

Make PMU overflow interrupts more accurate by using a timer to predict
when they will overflow rather than waiting for an event to occur which
allows us to otherwise check them.

Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190124162401.5111-3-aaron@os.amperecomputing.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c
target/arm/cpu.h
target/arm/helper.c