diff options
author | Chris Rauer <crauer@google.com> | 2023-09-22 18:14:11 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-10-19 14:32:13 +0100 |
commit | 9ef2629712680e70cbf39d8b6cb1ec0e0e2e72fa (patch) | |
tree | 5ff22d3462fc16295e127422f8d6b419b23e0295 /contrib | |
parent | 3a45f4f5376cad9489e1608f2e4960fd34805546 (diff) |
hw/timer/npcm7xx_timer: Prevent timer from counting down past zero
The counter register is only 24-bits and counts down. If the timer is
running but the qtimer to reset it hasn't fired off yet, there is a chance
the regster read can return an invalid result.
Signed-off-by: Chris Rauer <crauer@google.com>
Message-id: 20230922181411.2697135-1-crauer@google.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions