qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/10] s390x: Add vector registers to HMP output


From: Cornelia Huck
Subject: [Qemu-devel] [PATCH 06/10] s390x: Add vector registers to HMP output
Date: Wed, 20 May 2015 18:33:22 +0200

From: Eric Farman <address@hidden>

There are mechanisms to dump registers via the qemu HMP interface,
such as the "info registers" command.  Expand this output to dump
the new vector registers.

Signed-off-by: Eric Farman <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
 target-s390x/translate.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index 06fc192..fbffd30 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -121,6 +121,12 @@ void s390_cpu_dump_state(CPUState *cs, FILE *f, 
fprintf_function cpu_fprintf,
         }
     }
 
+    for (i = 0; i < 32; i++) {
+        cpu_fprintf(f, "V%02d=%016" PRIx64 "%016" PRIx64, i,
+                    env->vregs[i][0].ll, env->vregs[i][1].ll);
+        cpu_fprintf(f, (i % 2) ? " " : "\n");
+    }
+
 #ifndef CONFIG_USER_ONLY
     for (i = 0; i < 16; i++) {
         cpu_fprintf(f, "C%02d=%016" PRIx64, i, env->cregs[i]);
-- 
2.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]