From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: peter.maydell@linaro.org
Cc: Eric Farman <farman@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com,
jfrei@linux.vnet.ibm.com,
Cornelia Huck <cornelia.huck@de.ibm.com>
Subject: [Qemu-devel] [PULL 06/10] s390x: Add vector registers to HMP output
Date: Thu, 28 May 2015 10:43:01 +0200 [thread overview]
Message-ID: <1432802585-10765-7-git-send-email-cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <1432802585-10765-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.2
next prev parent reply other threads:[~2015-05-28 8:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 8:42 [Qemu-devel] [PULL 00/10] s390x: SIMD support Cornelia Huck
2015-05-28 8:42 ` [Qemu-devel] [PULL 01/10] s390x: Common access to floating point registers Cornelia Huck
2015-05-28 8:42 ` [Qemu-devel] [PULL 02/10] s390x: Vector Register IOCTLs Cornelia Huck
2015-05-28 8:42 ` [Qemu-devel] [PULL 03/10] s390x: Store Additional Status SIGP order Cornelia Huck
2015-05-28 8:42 ` [Qemu-devel] [PULL 04/10] gdb-xml: Include XML for s390 vector registers Cornelia Huck
2015-05-28 8:43 ` [Qemu-devel] [PULL 05/10] s390x: gdb updates for " Cornelia Huck
2015-05-28 8:43 ` Cornelia Huck [this message]
2015-05-28 8:43 ` [Qemu-devel] [PULL 07/10] linux/elf.h update Cornelia Huck
2015-05-28 8:43 ` [Qemu-devel] [PULL 08/10] s390x: Add vector registers to ELF dump Cornelia Huck
2015-05-28 8:43 ` [Qemu-devel] [PULL 09/10] s390x: Migrate vector registers Cornelia Huck
2015-05-28 8:43 ` [Qemu-devel] [PULL 10/10] s390x: Enable vector processing capability Cornelia Huck
2015-05-28 15:29 ` [Qemu-devel] [PULL 00/10] s390x: SIMD support Peter Maydell
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=1432802585-10765-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=peter.maydell@linaro.org \
--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).