]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: pl011: pull interrupt updates out of read/write ops
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2025 23:26:04 +0000 (00:26 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2025 18:27:47 +0000 (19:27 +0100)
commitab6b6a8a55b5434b77dc229f86179c8d3ca55873
tree79942a22d6a9e576fe66bce372cc106474d9ec25
parent137612772e300a386f0f0c31486eae7d1008a68c
rust: pl011: pull interrupt updates out of read/write ops

qemu_irqs are not part of the vmstate, therefore they will remain in
PL011State.  Update them if needed after regs_read()/regs_write().

Apply #[must_use] to functions that return whether the interrupt state
could have changed, so that it's harder to forget the call to update().

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs