Re: [PATCH v2 4/4] riscv: cpufeature: Extract common elements from extension checking

Andy Chiu
2024-06-21T08:38:49Z

On Mon, Jun 10, 2024 at 12:34 PM Charlie Jenkins <charlie@rivosinc.com> wrote:
>
> The __riscv_has_extension_likely() and __riscv_has_extension_unlikely()
> functions from the vendor_extensions.h can be used to simplify the
> standard extension checking code as well. Migrate those functions to
> cpufeature.h and reorganize the code in the file to use the functions.
>
> Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

Reviewed-by: Andy Chiu <andy.chiu@sifive.com>