]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: riscv: selftests: Add vector extension tests
authorAtish Patra <atishp@rivosinc.com>
Wed, 30 Apr 2025 08:16:30 +0000 (01:16 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 21 May 2025 04:04:40 +0000 (09:34 +0530)
commitf80e9cc5c6c35ef46c8b980f076911d885941b7d
treedbf3c12d364a356c9c701b44d9fd6a0d22d605f5
parent3608b174ece5633dbd1f9afe37a48a2a9a0f0499
KVM: riscv: selftests: Add vector extension tests

Add vector related tests with the ISA extension standard template.
However, the vector registers are bit tricky as the register length is
variable based on vlenb value of the system. That's why the macros are
defined with a default and overidden with actual value at runtime.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20250430-kvm_selftest_improve-v3-3-eea270ff080b@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/riscv/get-reg-list.c