Il gio 23 gen 2025, 04:25 Zhao Liu ha scritto:
> > --- a/rust/hw/char/pl011/src/device_class.rs
> > +++ b/rust/hw/char/pl011/src/device_class.rs
> > @@ -6,11 +6,11 @@
> > use std::os::raw::{c_int, c_void};
> >
> > use qemu_api::{
> > -bindings::*, c_str, vmstate_clock, vmstate_fields, vmsta
> --- a/rust/hw/char/pl011/src/device_class.rs
> +++ b/rust/hw/char/pl011/src/device_class.rs
> @@ -6,11 +6,11 @@
> use std::os::raw::{c_int, c_void};
>
> use qemu_api::{
> -bindings::*, c_str, vmstate_clock, vmstate_fields, vmstate_of,
> vmstate_subsections,
> -vmstate_unused, zeroabl
Pull all the mutable fields of PL011State into a separate struct.
Signed-off-by: Paolo Bonzini
---
rust/hw/char/pl011/src/device.rs | 251 ++---
rust/hw/char/pl011/src/device_class.rs | 46 +++--
2 files changed, 168 insertions(+), 129 deletions(-)
diff --git a/rust/h