From patchwork Thu May 28 08:43:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cornelia Huck X-Patchwork-Id: 478108 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YxtPS-0000M6-8P for mharc-qemu-devel@gnu.org; Thu, 28 May 2015 04:43:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxtPL-0000C3-LB for qemu-devel@nongnu.org; Thu, 28 May 2015 04:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxtPG-0002VM-QH for qemu-devel@nongnu.org; Thu, 28 May 2015 04:43:19 -0400 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:54724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxtPG-0002UM-EX for qemu-devel@nongnu.org; Thu, 28 May 2015 04:43:14 -0400 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 28 May 2015 09:43:13 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 28 May 2015 09:43:11 +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 CEBC9219005E for ; Thu, 28 May 2015 09:42:50 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t4S8hArA23068804 for ; Thu, 28 May 2015 08:43:10 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t4S8h9oI032082 for ; Thu, 28 May 2015 02:43:10 -0600 Received: from gondolin.boeblingen.de.ibm.com (dyn-9-152-224-143.boeblingen.de.ibm.com [9.152.224.143]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t4S8h7uE031905; Thu, 28 May 2015 02:43:09 -0600 From: Cornelia Huck To: peter.maydell@linaro.org Date: Thu, 28 May 2015 10:43:01 +0200 Message-Id: <1432802585-10765-7-git-send-email-cornelia.huck@de.ibm.com> X-Mailer: git-send-email 2.4.2 In-Reply-To: <1432802585-10765-1-git-send-email-cornelia.huck@de.ibm.com> References: <1432802585-10765-1-git-send-email-cornelia.huck@de.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15052808-0017-0000-0000-00000437D577 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.75.94.110 Cc: Eric Farman , qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, Cornelia Huck Subject: [Qemu-devel] [PULL 06/10] s390x: Add vector registers to HMP output X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2015 08:43:20 -0000 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]);