]> Git Repo - qemu.git/commit - tests/ptimer-test.c
ptimer: Add TRIGGER_ONLY_ON_DECREMENT policy option
authorPeter Maydell <[email protected]>
Mon, 9 Jul 2018 13:51:34 +0000 (14:51 +0100)
committerPeter Maydell <[email protected]>
Mon, 9 Jul 2018 13:51:34 +0000 (14:51 +0100)
commit086ede32afc9c70de3d75c4fb91c63db790cbd5c
tree471f251d68728013c8737b5b90022b1628e76521
parentb78aae9bb65876baa47b73d5cf63372171630bf9
ptimer: Add TRIGGER_ONLY_ON_DECREMENT policy option

The CMSDK timer behaviour is that an interrupt is triggered when the
counter counts down from 1 to 0; however one is not triggered if the
counter is manually set to 0 by a guest write to the counter register.
Currently ptimer can't handle this; add a policy option to allow
a ptimer user to request this behaviour.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Message-id: 20180703171044[email protected]
hw/core/ptimer.c
include/hw/ptimer.h
tests/ptimer-test.c
This page took 0.026131 seconds and 4 git commands to generate.