qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] pl031: Update last RTCLR value on write in case it's read ba


From: Peter Maydell
Subject: Re: [PATCH] pl031: Update last RTCLR value on write in case it's read back
Date: Thu, 22 Feb 2024 16:22:04 +0000

On Thu, 22 Feb 2024 at 00:04, Jessica Clarke <jrtc27@jrtc27.com> wrote:
>
> The PL031 allows you to read RTCLR, which is meant to give you the last
> value written. PL031State has an lr field which is used when reading
> from RTCLR, and is present in the VM migration state, but we never
> actually update it, so it always reads as its initial 0 value.
>
> Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
> ---

Thanks for the patch -- looks like this bug has been present since
the first version of the pl031 emulation was added back in 2007...
Applied to target-arm.next.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]