Thanks for the patch! We have a similar patch from @asb under review at the moment, D57450. There's one question about ABI compatibility that still needs to be answered, which we will discuss in the RISC-V sync-up later today.
Thanks for pointing me to the patch. I can abandon this one now.