diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-07-16 11:36:44 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-07-22 19:19:44 +0200 |
commit | f0ccf770789e48b7a73497b465fdc892d28c1339 (patch) | |
tree | 5ef460902dde6d29472a62a33583c65b2c2f9265 /module-common.c | |
parent | 0418f90809aea5b375c859e744c8e8610e9be446 (diff) | |
download | qemu-f0ccf770789e48b7a73497b465fdc892d28c1339.zip qemu-f0ccf770789e48b7a73497b465fdc892d28c1339.tar.gz qemu-f0ccf770789e48b7a73497b465fdc892d28c1339.tar.bz2 |
hpet: fix and cleanup persistence of interrupt status
There are several bugs in the handling of the ISR register:
- switching level->edge was not lowering the interrupt and
clearing ISR
- switching on the enable bit was not raising a level-triggered
interrupt if the timer had fired
- the timer must be kept running even if not enabled, in
order to set the ISR flag, so writes to HPET_TN_CFG must
not call hpet_del_timer()
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions