]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/timer/hpet: Reorganize register decoding
authorZhao Liu <zhao1.liu@intel.com>
Tue, 20 May 2025 15:27:46 +0000 (23:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 May 2025 16:04:27 +0000 (18:04 +0200)
commitd74169e09e1d424aaca138966f460520a0d4dd0d
treefe8ac69dd9a16bed38e0b09e3b53bb195ce97852
parentddc25eb40444f4bbcfea276d22beee6494c3f18e
hw/timer/hpet: Reorganize register decoding

For Rust HPET, since the commit 519088b7cf6d ("rust: hpet: decode HPET
registers into enums"), it decodes register address by checking if the
register belongs to global register space. And for C HPET, it checks
timer register space first.

While both approaches are fine, it's best to be as consistent as
possible.

Synchronize changes from the rust side to C side.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250520152750.2542612-2-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/timer/hpet.c