diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-28 14:02:03 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-20 12:14:45 +0100 |
commit | 7bda68e8e2b0b836639557ddb13d761bdd15a104 (patch) | |
tree | 61cec62831696870db9602b03b3d4251cc4e7f15 /rust/hw/timer | |
parent | d1368344bc9bb251080507940f2bad16048d2687 (diff) | |
download | qemu-7bda68e8e2b0b836639557ddb13d761bdd15a104.zip qemu-7bda68e8e2b0b836639557ddb13d761bdd15a104.tar.gz qemu-7bda68e8e2b0b836639557ddb13d761bdd15a104.tar.bz2 |
qdev, rust/hpet: fix type of HPET "timers" property
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw/timer')
-rw-r--r-- | rust/hw/timer/hpet/src/hpet.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/hw/timer/hpet/src/hpet.rs b/rust/hw/timer/hpet/src/hpet.rs index 20e0afd..63c1971 100644 --- a/rust/hw/timer/hpet/src/hpet.rs +++ b/rust/hw/timer/hpet/src/hpet.rs @@ -12,7 +12,7 @@ use std::{ use qemu_api::{ bindings::{ address_space_memory, address_space_stl_le, qdev_prop_bit, qdev_prop_bool, - qdev_prop_uint32, qdev_prop_uint8, + qdev_prop_uint32, qdev_prop_usize, }, c_str, cell::{BqlCell, BqlRefCell}, @@ -859,8 +859,8 @@ qemu_api::declare_properties! { c_str!("timers"), HPETState, num_timers, - unsafe { &qdev_prop_uint8 }, - u8, + unsafe { &qdev_prop_usize }, + usize, default = HPET_MIN_TIMERS ), qemu_api::define_property!( |