From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: qemu-devel@nongnu.org
Cc: Eric Farman <farman@linux.vnet.ibm.com>,
borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com,
Cornelia Huck <cornelia.huck@de.ibm.com>,
agraf@suse.de
Subject: [Qemu-devel] [PATCH 06/10] s390x: Add vector registers to HMP output
Date: Wed, 20 May 2015 18:33:22 +0200 [thread overview]
Message-ID: <1432139606-23705-7-git-send-email-cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <1432139606-23705-1-git-send-email-cornelia.huck@de.ibm.com>
From: Eric Farman <farman@linux.vnet.ibm.com>
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 | 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
next prev parent reply other threads:[~2015-05-20 16:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-20 16:33 [Qemu-devel] [PATCH 00/10] s390x: SIMD support Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 01/10] s390x: Common access to floating point registers Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 02/10] s390x: Vector Register IOCTLs Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 03/10] s390x: Store Additional Status SIGP order Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 04/10] gdb-xml: Include XML for s390 vector registers Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 05/10] s390x: gdb updates for " Cornelia Huck
2015-05-20 16:33 ` Cornelia Huck [this message]
2015-05-20 16:33 ` [Qemu-devel] [PATCH 07/10] linux/elf.h update Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 08/10] s390x: Add vector registers to ELF dump Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 09/10] s390x: Migrate vector registers Cornelia Huck
2015-05-20 16:33 ` [Qemu-devel] [PATCH 10/10] s390x: Enable vector processing capability Cornelia Huck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432139606-23705-7-git-send-email-cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=farman@linux.vnet.ibm.com \
--cc=jfrei@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).