Re: [PATCH 06/10] rust: pl011: extract PL011Registers

2025-01-23 Thread Paolo Bonzini
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

Re: [PATCH 06/10] rust: pl011: extract PL011Registers

2025-01-22 Thread Zhao Liu
> --- 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

[PATCH 06/10] rust: pl011: extract PL011Registers

2025-01-17 Thread Paolo Bonzini
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