[PATCH 1/4] riscv: Extend cpufeature.c to detect vendor extensions

Conor Dooley conor at kernel.org
Thu May 16 09:09:13 PDT 2024


On Wed, May 15, 2024 at 02:26:13PM -0700, Charlie Jenkins wrote:
> Instead of grouping all vendor extensions into the same riscv_isa_ext
> that standard instructions use, create a struct
> "riscv_isa_vendor_ext_data_list" that allows each vendor to maintain
> their vendor extensions independently of the standard extensions.
> xandespmu is currently the only vendor extension so that is the only
> extension that is affected by this change.
> 
> An additional benefit of this is that the extensions of each vendor can
> be conditionally enabled. A config RISCV_ISA_VENDOR_EXT_ANDES has been
> added to allow for that.
> 
> Signed-off-by: Charlie Jenkins <charlie at rivosinc.com>

Reviewed-by: Conor Dooley <conor.dooley at microchip.com>

Cheers,
Conor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240516/c6b38bd2/attachment.sig>


More information about the linux-riscv mailing list