aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/mmio.c
diff options
context:
space:
mode:
authorJunjie Mao <junjie.mao@hotmail.com>2024-11-21 16:58:05 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-11-25 10:27:47 +0000
commitf7ceab1e307128c2e07bee1f92fd57d4a948b1f8 (patch)
treec69392c38298e41eaf67e6ff44967ea203b9107f /hw/ide/mmio.c
parent8ac1719df75cba01e7095e990265b957aed4f1c2 (diff)
downloadqemu-f7ceab1e307128c2e07bee1f92fd57d4a948b1f8.zip
qemu-f7ceab1e307128c2e07bee1f92fd57d4a948b1f8.tar.gz
qemu-f7ceab1e307128c2e07bee1f92fd57d4a948b1f8.tar.bz2
rust/pl011: Fix range checks for device ID accesses
The peripheral and PrimeCell identification registers of pl011 are located at offset 0xFE0 - 0xFFC. To check if a read falls to such registers, the C implementation checks if the offset-shifted-by-2 (not the offset itself) is in the range 0x3F8 - 0x3FF. Use the same check in the Rust implementation. This fixes the timeout of the following avocado tests: * tests/avocado/boot_linux_console.py:BootLinuxConsole.test_arm_virt * tests/avocado/replay_kernel.py:ReplayKernelNormal.test_arm_virt * tests/avocado/replay_kernel.py:ReplayKernelNormal.test_arm_vexpressa9 Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Junjie Mao <junjie.mao@hotmail.com> Tested-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <SY0P300MB102644C4AC34A3AAD75DC4D5955C2@SY0P300MB1026.AUSP300.PROD.OUTLOOK.COM> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20241121165806.476008-39-alex.bennee@linaro.org>
Diffstat (limited to 'hw/ide/mmio.c')
0 files changed, 0 insertions, 0 deletions