KVM: selftests: Add array order helpers to riscv get-reg-list
authorAndrew Jones <ajones@ventanamicro.com>
Thu, 17 Aug 2023 16:23:46 +0000 (18:23 +0200)
committerAnup Patel <anup@brainfault.org>
Thu, 12 Oct 2023 13:14:18 +0000 (18:44 +0530)
commit6a53a5fbc8f494e69922e13491f7077ce010ec28
treea97558ceacc6a648d35e8a220097d05e6756e116
parent26c7d6d8a5a2ce9705e89d10683f3d41ed68de5c
KVM: selftests: Add array order helpers to riscv get-reg-list

Add a couple macros to use when filling arrays in order to ensure
the elements are placed in the right order, regardless of the
order we prefer to read them. And immediately apply the new
macro to resorting the ISA extension lists alphabetically.

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