target/imx: reload cmp timer outside of the reload ptimer transaction
authorAxel Heider <axel.heider@hensoldt.net>
Wed, 19 Oct 2022 13:09:50 +0000 (15:09 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Oct 2022 09:27:23 +0000 (10:27 +0100)
commit7719419deb07a431455dfb0178480ef4be2d3e2c
tree5f06f2d854ca0bdd860a5c5e184151b94c0b6b02
parent7764963b9239dc966122617cc8b61d4530d6ce2a
target/imx: reload cmp timer outside of the reload ptimer transaction

When running seL4 tests (https://docs.sel4.systems/projects/sel4test)
on the sabrelight platform, the timer tests fail. The arm/imx6 EPIT
timer interrupt does not fire properly, instead of a e.g. second in
can take up to a minute to finally see the interrupt.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1263

Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
Message-id: 166663118138.13362.1229967229046092876-0@git.sr.ht
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/imx_epit.c