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

Re: [PATCH v3 03/39] xen/riscv: introduce csr_volatile_read64()





On 10/5/26 12:01 PM, Baptiste Le Duc wrote:
On RV32 a 64-bit CSR is accessed as two halves, <csr> and <csr>H. Reading
As far as I can tell RV32 can't currently be selected (RISCV_64 is def_bool y,
no RISCV_32 in Kconfig), so this path can't even be build-tested.

I've tested that manually.

Is the retry
loop really needed now, or a least in this patch series?


I think it is worth keeping the retry loop now so that the code is ready if RV32 support needs to be added in the future, reducing the changes required at that point. It also helps explain why a separate csr_volatile_read64() function is needed in the first place.

~ Oleksii



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.