diff options
author | Axel Heider <axel.heider@hensoldt.net> | 2022-11-20 20:05:25 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-01-05 12:14:43 +0000 |
commit | 8d71beaf1e6b49266c4d98286f4ce6c874c998ae (patch) | |
tree | a5419c7a8bccb25b22841564caf8f045ed6660d4 /hw/net/virtio-net.c | |
parent | e662449aa670bff938a011220593dd059b75e84b (diff) | |
download | qemu-8d71beaf1e6b49266c4d98286f4ce6c874c998ae.zip qemu-8d71beaf1e6b49266c4d98286f4ce6c874c998ae.tar.gz qemu-8d71beaf1e6b49266c4d98286f4ce6c874c998ae.tar.bz2 |
hw/timer/imx_epit: fix compare timer handling
- fix #1263 for CR writes
- rework compare time handling
- The compare timer has to run even if CR.OCIEN is not set,
as SR.OCIF must be updated.
- The compare timer fires exactly once when the
compare value is less than the current value, but the
reload values is less than the compare value.
- The compare timer will never fire if the reload value is
less than the compare value. Disable it in this case.
Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
[PMM: fixed minor style nits]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions