diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-27 18:19:35 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-06 12:44:47 +0100 |
| commit | 519088b7cf6dbdef08d8753b57aa29162b83d1a1 (patch) | |
| tree | 9b35f28f0fc343b16d2eff5fc71f3f90c951e3aa /rust/qemu-api/tests | |
| parent | aa50bc4fb9d4fc1dc027c4d70babe0acb6c09971 (diff) | |
| download | focaccia-qemu-519088b7cf6dbdef08d8753b57aa29162b83d1a1.tar.gz focaccia-qemu-519088b7cf6dbdef08d8753b57aa29162b83d1a1.zip | |
rust: hpet: decode HPET registers into enums
Generalize timer_and_addr() to decode all registers into a single enum HPETRegister, and use the TryInto derive to separate valid and invalid values. The main advantage lies in checking that all registers are enumerated in the "match" statements. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/tests')
0 files changed, 0 insertions, 0 deletions