summaryrefslogtreecommitdiff
path: root/target-s390x/translate.c
diff options
context:
space:
mode:
authorEric Farman <farman@linux.vnet.ibm.com>2014-05-29 13:50:37 -0400
committerCornelia Huck <cornelia.huck@de.ibm.com>2015-05-27 17:52:03 +0200
commit56c42271495fc5f6c5bd70c4309a74b425c5cbda (patch)
tree94b6d0efb92fe62ca7c2abf782413d8058542ef3 /target-s390x/translate.c
parentca343c7a84fbe457dd442d26d5a01f31e8a8d308 (diff)
downloadqemu-56c42271495fc5f6c5bd70c4309a74b425c5cbda.tar.gz
s390x: Add vector registers to HMP output
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>
Diffstat (limited to 'target-s390x/translate.c')
-rw-r--r--target-s390x/translate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index 06fc1923eb..fbffd3066d 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]);