]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: hpet: fix decoding of timer registers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Mar 2025 13:17:52 +0000 (14:17 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Mar 2025 18:34:36 +0000 (19:34 +0100)
commit64acc23c9793e86f2811345f3c122bf3ece8088b
treee0c39ff8e3dfdcdec1035fc8837f2f788aec4e1f
parentf7b87e464c8e9d30661fb9f519ed14fb053cd415
rust: hpet: fix decoding of timer registers

Due to a missing "& 0x18", timer registers are not decoded correctly.
This breaks the tests/functional/test_x86_64_tuxrun.py functional
test.

Fixes: 519088b7cf6 ("rust: hpet: decode HPET registers into enums", 2025-03-06)
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/timer/hpet/src/hpet.rs