]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: riscv: selftests: get-reg-list print_reg should never fail
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 20 Sep 2023 14:37:14 +0000 (16:37 +0200)
committerAnup Patel <anup@brainfault.org>
Thu, 12 Oct 2023 13:14:37 +0000 (18:44 +0530)
commit62d0c458f828949dd01bfe41daf3bed73ab9e288
treec91a2d9236e0f05085d808d91b246694d8175935
parent2b3f2b78ec93bdb1cfd8574158719d54263d50d6
KVM: riscv: selftests: get-reg-list print_reg should never fail

When outputting the "new" register list we want to print all of the
new registers, decoding as much as possible of each of them. Also, we
don't want to assert while listing registers with '--list'. We output
"/* UNKNOWN */" after each new register (which we were already doing
for some), which should be enough.

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