[PULL 38/48] rust: pl011: extract conversion to RegisterOffset

2025-01-28 Thread Paolo Bonzini
As an added bonus, this also makes the new function return u32 instead of u64, thus factoring some casts into a single place. Reviewed-by: Zhao Liu Signed-off-by: Paolo Bonzini --- rust/hw/char/pl011/src/device.rs | 137 ++- rust/hw/char/pl011/src/lib.rs| 2 +-

[PULL 38/48] rust: pl011: extract conversion to RegisterOffset

2025-01-24 Thread Paolo Bonzini
As an added bonus, this also makes the new function return u32 instead of u64, thus factoring some casts into a single place. Reviewed-by: Zhao Liu Signed-off-by: Paolo Bonzini --- rust/hw/char/pl011/src/device.rs | 113 +-- 1 file changed, 64 insertions(+), 49 delet