]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm/kvm: Tweak print_register_name() for arm64 system register
authorEric Auger <eric.auger@redhat.com>
Fri, 6 Mar 2026 09:01:12 +0000 (09:01 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Mar 2026 09:43:18 +0000 (09:43 +0000)
As opposed to other register types, arm64 system register decoding
is not introduced by any 'register' mention which can lead to
unfriendly user-facing traces.  Let's add "system register"

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20260304101625.1962633-5-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm.c

index 11f6f2dff09fe8117a1b2ad51aa2e7d9d25583aa..d4a68874b8805fb7ec5a0dcf4996a4965c62cea9 100644 (file)
@@ -978,7 +978,7 @@ char *kvm_print_register_name(uint64_t regidx)
         case KVM_REG_ARM_DEMUX:
             return g_strdup_printf("demuxed reg %"PRIx64, regidx);
         case KVM_REG_ARM64_SYSREG:
-            return g_strdup_printf("op0:%d op1:%d crn:%d crm:%d op2:%d",
+            return g_strdup_printf("system register op0:%d op1:%d crn:%d crm:%d op2:%d",
                                    CP_REG_ARM64_SYSREG_OP(regidx, OP0),
                                    CP_REG_ARM64_SYSREG_OP(regidx, OP1),
                                    CP_REG_ARM64_SYSREG_OP(regidx, CRN),