Re: [PATCH] riscv: Add runtime constant support

From: Ben Dooks
Date: Mon Jan 27 2025 - 04:26:52 EST


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@xxxxxxxxxxxx>

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