RISC-V: Detect Zicond from ISA string
authorAnup Patel <apatel@ventanamicro.com>
Fri, 15 Sep 2023 08:39:44 +0000 (14:09 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 12 Oct 2023 13:13:43 +0000 (18:43 +0530)
commit662a601aa355c6917ed2bc1c4e316a4c0ee206ed
tree05c2cd1e24724ffebac8170e0ea70bd6308b1ab1
parenta4f5f39849f39f62f5d4e88cbb600f95f927003d
RISC-V: Detect Zicond from ISA string

The RISC-V integer conditional (Zicond) operation extension defines
standard conditional arithmetic and conditional-select/move operations
which are inspired from the XVentanaCondOps extension. In fact, QEMU
RISC-V also has support for emulating Zicond extension.

Let us detect Zicond extension from ISA string available through
DT or ACPI.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/hwcap.h
arch/riscv/kernel/cpufeature.c