Junjie Mao <junjie....@hotmail.com> writes:

> 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.mayd...@linaro.org>
> Signed-off-by: Junjie Mao <junjie....@hotmail.com>

As this is the simple fix I'm grabbing this for rc2. We can revisit more
Rusty solutions after the release.

Queued to maintainer/for-9.2-rc2, thanks.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro

Reply via email to