Re: [PATCH 08/10] rust: pl011: remove duplicate definitions

2025-01-22 Thread Zhao Liu
On Fri, Jan 17, 2025 at 10:26:55AM +0100, Paolo Bonzini wrote: > Date: Fri, 17 Jan 2025 10:26:55 +0100 > From: Paolo Bonzini > Subject: [PATCH 08/10] rust: pl011: remove duplicate definitions > X-Mailer: git-send-email 2.47.1 > > Unify the "Interrupt" enum and the &qu

[PATCH 08/10] rust: pl011: remove duplicate definitions

2025-01-17 Thread Paolo Bonzini
Unify the "Interrupt" enum and the "INT_*" constants with a struct that contains the bits. The "int_level" and "int_enabled" fields could use a crate such as "bitflags". Signed-off-by: Paolo Bonzini --- rust/hw/char/pl011/src/device.rs | 36 - rust/hw/char/pl011/src/lib.