]> git.ipfire.org Git - thirdparty/qemu.git/commit
hpet: fix clamping of period
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jul 2024 09:56:35 +0000 (11:56 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jul 2024 16:18:24 +0000 (18:18 +0200)
commitc9669d6d5741f7aa86e160c5e42979f90d25d168
tree54ccd4eb88188508769dcdecf5df104ca7b340cc
parentde12ebfdabe224597f624827ad57348b83e7d88a
hpet: fix clamping of period

When writing a new period, the clamping should use a maximum value
rather tyhan a bit mask.  Also, when writing the high bits new_val
is shifted right by 32, so the maximum allowed period should also
be shifted right.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/hpet.c