]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
s390x: Add vector registers to HMP output
authorEric Farman <farman@linux.vnet.ibm.com>
Thu, 29 May 2014 17:50:37 +0000 (13:50 -0400)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 27 May 2015 15:52:03 +0000 (17:52 +0200)
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 <farman@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
target-s390x/translate.c

index 06fc1923eba17083ceefb4de835d99c8082f72d6..fbffd3066dfab5e2f1b7f6fe5ce7ce6dc3de64f2 100644 (file)
@@ -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]);