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

2024-02-22 Thread Peter Maydell
On Thu, 22 Feb 2024 at 00:04, Jessica Clarke 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 al

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

2024-02-22 Thread Alex Bennée
Jessica Clarke writes: > 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 va

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

2024-02-21 Thread Jessica Clarke
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 Clar