diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-12 12:23:59 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-25 16:18:12 +0100 |
commit | 3212da0033530ae896d31d90d5e81a772fc37088 (patch) | |
tree | 07df8b7bb6e44cad8b378633df534007ddd7577c /rust/hw/timer/hpet | |
parent | ac5699c5da51fa9d39bc964e81645953796f7ad1 (diff) | |
download | qemu-3212da0033530ae896d31d90d5e81a772fc37088.zip qemu-3212da0033530ae896d31d90d5e81a772fc37088.tar.gz qemu-3212da0033530ae896d31d90d5e81a772fc37088.tar.bz2 |
rust: add SysBusDeviceImpl
The only function, right now, is to ensure that anything with a
SysBusDeviceClass class is a SysBusDevice.
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw/timer/hpet')
-rw-r--r-- | rust/hw/timer/hpet/src/hpet.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/hw/timer/hpet/src/hpet.rs b/rust/hw/timer/hpet/src/hpet.rs index 75ff5b3..b4ffccf 100644 --- a/rust/hw/timer/hpet/src/hpet.rs +++ b/rust/hw/timer/hpet/src/hpet.rs @@ -23,7 +23,7 @@ use qemu_api::{ qdev::{DeviceImpl, DeviceMethods, DeviceState, Property, ResetType, ResettablePhasesImpl}, qom::{ObjectImpl, ObjectType, ParentField}, qom_isa, - sysbus::SysBusDevice, + sysbus::{SysBusDevice, SysBusDeviceImpl}, timer::{Timer, CLOCK_VIRTUAL}, }; @@ -887,3 +887,5 @@ impl DeviceImpl for HPETState { impl ResettablePhasesImpl for HPETState { const HOLD: Option<fn(&Self, ResetType)> = Some(Self::reset_hold); } + +impl SysBusDeviceImpl for HPETState {} |