Received: from eggs.gnu.org ([2001:4830:134:3::10]:39371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6w9-0005KR-7D for qemu-devel@nongnu.org; Wed, 20 May 2015 12:33:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv6w4-00019q-22 for qemu-devel@nongnu.org; Wed, 20 May 2015 12:33:41 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:40257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6w3-00018l-P1 for qemu-devel@nongnu.org; Wed, 20 May 2015 12:33:35 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 May 2015 17:33:33 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 84B2B2190063 for ; Wed, 20 May 2015 17:33:12 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t4KGXVip9896404 for ; Wed, 20 May 2015 16:33:31 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t4KGXVom011967 for ; Wed, 20 May 2015 10:33:31 -0600 From: Cornelia Huck Date: Wed, 20 May 2015 18:33:22 +0200 Message-Id: <1432139606-23705-7-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1432139606-23705-1-git-send-email-cornelia.huck@de.ibm.com> References: <1432139606-23705-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 06/10] s390x: Add vector registers to HMP output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Eric Farman , borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, Cornelia Huck , agraf@suse.de From: Eric Farman 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 Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck --- 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