[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 24/40] rust/pl011: Use correct masks for IBRD and FBRD
From: |
Paolo Bonzini |
Subject: |
[PULL 24/40] rust/pl011: Use correct masks for IBRD and FBRD |
Date: |
Mon, 4 Nov 2024 18:27:03 +0100 |
From: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Port fix from commit cd247eae16ab1b9ce97fd34c000c1b883feeda45
"hw/char/pl011: Use correct masks for IBRD and FBRD"
Related issue: <https://gitlab.com/qemu-project/qemu/-/issues/2610>
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link:
https://lore.kernel.org/r/20241024-rust-round-2-v1-9-051e7a25b978@linaro.org
---
rust/hw/char/pl011/src/device.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/hw/char/pl011/src/device.rs b/rust/hw/char/pl011/src/device.rs
index 98357db04e8..788b47203b1 100644
--- a/rust/hw/char/pl011/src/device.rs
+++ b/rust/hw/char/pl011/src/device.rs
@@ -19,10 +19,10 @@
};
/// Integer Baud Rate Divider, `UARTIBRD`
-const IBRD_MASK: u32 = 0x3f;
+const IBRD_MASK: u32 = 0xffff;
/// Fractional Baud Rate Divider, `UARTFBRD`
-const FBRD_MASK: u32 = 0xffff;
+const FBRD_MASK: u32 = 0x3f;
const DATA_BREAK: u32 = 1 << 10;
--
2.47.0
- [PULL 16/40] rust: provide safe wrapper for MaybeUninit::zeroed(), (continued)
- [PULL 16/40] rust: provide safe wrapper for MaybeUninit::zeroed(), Paolo Bonzini, 2024/11/04
- [PULL 15/40] rust: make properties array immutable, Paolo Bonzini, 2024/11/04
- [PULL 17/40] rust: do not use TYPE_CHARDEV unnecessarily, Paolo Bonzini, 2024/11/04
- [PULL 19/40] rust/pl011: fix default value for migrate-clock, Paolo Bonzini, 2024/11/04
- [PULL 14/40] rust: clean up define_property macro, Paolo Bonzini, 2024/11/04
- [PULL 18/40] rust: add definitions for vmstate, Paolo Bonzini, 2024/11/04
- [PULL 20/40] rust/pl011: add support for migration, Paolo Bonzini, 2024/11/04
- [PULL 22/40] rust/pl011: add TYPE_PL011_LUMINARY device, Paolo Bonzini, 2024/11/04
- [PULL 21/40] rust/pl011: move CLK_NAME static to function scope, Paolo Bonzini, 2024/11/04
- [PULL 23/40] rust/pl011: remove commented out C code, Paolo Bonzini, 2024/11/04
- [PULL 24/40] rust/pl011: Use correct masks for IBRD and FBRD,
Paolo Bonzini <=
- [PULL 25/40] rust: patch bilge-impl to allow compilation with 1.63.0, Paolo Bonzini, 2024/11/04
- [PULL 28/40] rust: introduce a c_str macro, Paolo Bonzini, 2024/11/04
- [PULL 27/40] rust: use std::os::raw instead of core::ffi, Paolo Bonzini, 2024/11/04
- [PULL 26/40] rust: fix cfgs of proc-macro2 for 1.63.0, Paolo Bonzini, 2024/11/04
- [PULL 30/40] rust: synchronize dependencies between subprojects and Cargo.lock, Paolo Bonzini, 2024/11/04
- [PULL 29/40] rust: silence unknown warnings for the sake of old compilers, Paolo Bonzini, 2024/11/04
- [PULL 31/40] rust: create a cargo workspace, Paolo Bonzini, 2024/11/04
- [PULL 33/40] rust: do not use MaybeUninit::zeroed(), Paolo Bonzini, 2024/11/04
- [PULL 32/40] rust: introduce alternative implementation of offset_of!, Paolo Bonzini, 2024/11/04