[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/11] rust/pl011: Use correct masks for IBRD and FBRD
From: |
Manos Pitsidianakis |
Subject: |
[PATCH 09/11] rust/pl011: Use correct masks for IBRD and FBRD |
Date: |
Thu, 24 Oct 2024 17:03:07 +0300 |
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>
---
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
cf1964fecdfd6d9dae3378890aa8b515a1ddc036..6d1353dafc14bfe73703b5cff7e1ff7659de220e
100644
--- a/rust/hw/char/pl011/src/device.rs
+++ b/rust/hw/char/pl011/src/device.rs
@@ -21,10 +21,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.45.2
- [PATCH 10/11] rust/qemu-api: add log module, (continued)
[PATCH 05/11] rust/pl011: move CLK_NAME static to function scope, Manos Pitsidianakis, 2024/10/24
[PATCH 09/11] rust/pl011: Use correct masks for IBRD and FBRD,
Manos Pitsidianakis <=
[PATCH 08/11] rust/pl011: remove commented out C code, Manos Pitsidianakis, 2024/10/24
[PATCH 11/11] rust/pl011: log guest/unimp errors, Manos Pitsidianakis, 2024/10/24
Re: [PATCH 00/11] Rust device model patches and misc cleanups, Paolo Bonzini, 2024/10/25