hpet: accept 64-bit reads and writes
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jul 2024 07:58:01 +0000 (09:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Jul 2024 17:19:44 +0000 (19:19 +0200)
commitc2366567378dd8fb89329816003801f54e30e6f3
treee5267ecf6ecc937773d47f0831b51353368053bf
parentba88935b0fac2588b0a739f810b58dfabf7f92c8
hpet: accept 64-bit reads and writes

Declare the MemoryRegionOps so that 64-bit reads and writes to the HPET
are received directly.  This makes it possible to unify the code to
process low and high parts: for 32-bit reads, extract the desired word;
for 32-bit writes, just merge the desired part into the old value and
proceed as with a 64-bit write.

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