[PATCH] riscv: Add runtime constant support

Ben Dooks ben.dooks at codethink.co.uk
Mon Jan 27 00:51:04 PST 2025


On 27/01/2025 08:18, Charlie Jenkins wrote:
> Implement the runtime constant infrastructure for riscv. Use this
> infrastructure to generate constants to be used by the d_hash()
> function.
> 
> This is the riscv variant of commit 94a2bc0f611c ("arm64: add 'runtime
> constant' support") and commit e3c92e81711d ("runtime constants: add
> x86 architecture support").
> 
> Signed-off-by: Charlie Jenkins <charlie at rivosinc.com>

I think my only comment on this is we should treat instructions as
__le32 type and add the proper conversions when maniuplating them.

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html



More information about the linux-riscv mailing list