]> xenbits.xensource.com Git - people/pauldu/linux.git/commit
KVM: riscv: selftests: Generate ISA extension reg_list using macros
authorAnup Patel <apatel@ventanamicro.com>
Tue, 28 Nov 2023 14:53:43 +0000 (20:23 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 29 Dec 2023 07:01:38 +0000 (12:31 +0530)
commitc19829ba1e4d119e69b1ac9a96d5a0b86f7233e9
treed25ef65bc85d4ca0dc7203aa0f561c12672e3a6c
parentbcd08e9bae57b5585e438b7fa58aba4b145a59cf
KVM: riscv: selftests: Generate ISA extension reg_list using macros

Various ISA extension reg_list have common pattern so let us generate
these using macros.

We define two macros for the above purpose:
1) KVM_ISA_EXT_SIMPLE_CONFIG - Macro to generate reg_list for
   ISA extension without any additional ONE_REG registers
2) KVM_ISA_EXT_SUBLIST_CONFIG - Macro to generate reg_list for
   ISA extension with additional ONE_REG registers

This patch also adds the missing config for svnapot.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/riscv/get-reg-list.c