[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/24] hw/char/pl011: fix baud rate calculation
From: |
Peter Maydell |
Subject: |
[PULL 01/24] hw/char/pl011: fix baud rate calculation |
Date: |
Thu, 20 Oct 2022 13:21:23 +0100 |
From: Baruch Siach <baruch@tkos.co.il>
The PL011 TRM says that "UARTIBRD = 0 is invalid and UARTFBRD is ignored
when this is the case". But the code looks at FBRD for the invalid case.
Fix this.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Message-id:
1408f62a2e45665816527d4845ffde650957d5ab.1665051588.git.baruchs-c@neureality.ai
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/char/pl011.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/char/pl011.c b/hw/char/pl011.c
index 6e2d7f75095..c076813423f 100644
--- a/hw/char/pl011.c
+++ b/hw/char/pl011.c
@@ -176,7 +176,7 @@ static unsigned int pl011_get_baudrate(const PL011State *s)
{
uint64_t clk;
- if (s->fbrd == 0) {
+ if (s->ibrd == 0) {
return 0;
}
--
2.25.1
- [PULL 00/24] target-arm queue, Peter Maydell, 2022/10/20
- [PULL 01/24] hw/char/pl011: fix baud rate calculation,
Peter Maydell <=
- [PULL 05/24] target/arm: Use probe_access_full for BTI, Peter Maydell, 2022/10/20
- [PULL 09/24] target/arm: Split out S1Translate type, Peter Maydell, 2022/10/20
- [PULL 03/24] target/arm: Enable TARGET_PAGE_ENTRY_EXTRA, Peter Maydell, 2022/10/20
- [PULL 02/24] target/arm: update the cortex-a15 MIDR to latest rev, Peter Maydell, 2022/10/20
- [PULL 23/24] target/arm: Enable TARGET_TB_PCREL, Peter Maydell, 2022/10/20
- [PULL 07/24] target/arm: Move ARMMMUIdx_Stage2 to a real tlb mmu_idx, Peter Maydell, 2022/10/20
- [PULL 11/24] target/arm: Move be test for regime into S1TranslateResult, Peter Maydell, 2022/10/20
- [PULL 06/24] target/arm: Add ARMMMUIdx_Phys_{S,NS}, Peter Maydell, 2022/10/20
- [PULL 10/24] target/arm: Plumb debug into S1Translate, Peter Maydell, 2022/10/20
- [PULL 15/24] target/arm: Introduce curr_insn_len, Peter Maydell, 2022/10/20