diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-07-10 11:56:35 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-07-16 18:18:24 +0200 |
| commit | c9669d6d5741f7aa86e160c5e42979f90d25d168 (patch) | |
| tree | 54ccd4eb88188508769dcdecf5df104ca7b340cc /hw/core/machine-hmp-cmds.c | |
| parent | de12ebfdabe224597f624827ad57348b83e7d88a (diff) | |
| download | focaccia-qemu-c9669d6d5741f7aa86e160c5e42979f90d25d168.tar.gz focaccia-qemu-c9669d6d5741f7aa86e160c5e42979f90d25d168.zip | |
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>
Diffstat (limited to 'hw/core/machine-hmp-cmds.c')
0 files changed, 0 insertions, 0 deletions