diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-05-20 23:27:46 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-26 18:04:27 +0200 |
commit | d74169e09e1d424aaca138966f460520a0d4dd0d (patch) | |
tree | fe8ac69dd9a16bed38e0b09e3b53bb195ce97852 /rust/hw | |
parent | ddc25eb40444f4bbcfea276d22beee6494c3f18e (diff) | |
download | qemu-d74169e09e1d424aaca138966f460520a0d4dd0d.zip qemu-d74169e09e1d424aaca138966f460520a0d4dd0d.tar.gz qemu-d74169e09e1d424aaca138966f460520a0d4dd0d.tar.bz2 |
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>
Diffstat (limited to 'rust/hw')
0 files changed, 0 insertions, 0 deletions