Both SP804Timer/IntegratorPIT peek at ArmTimer internal state.
This is fine so far but we want to convert ArmTimer to QOM
where peeking at QOM state internal should be avoided.
ArmTimer's IRQ is just a pointer, so we can pass/set it via
argument, avoiding accessing ArmTimer internal state except
from the arm_timer_*() methods.
Once ArmTimer get QOM'ified (in a few commits), it will
inherit the SysBus API. This IRQ will then become a SysBus
IRQ within this ArmTimer object.
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
hw/timer/arm_timer.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)