On 25/4/25 18:50, Richard Henderson wrote:
This is an alternate, but less exact approach. It assumes that there will never be a 16 or 48-bit csr write instruction. This feels dirtier, but it's a fair assumption involves much less faff.
I prefer the other safer version which properly propagate $ra, which could be useful for callees.