From patchwork Fri May 11 03:52:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135484 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp373360lji; Thu, 10 May 2018 20:57:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZokhmNIGogd1vVgOjIkAcmKJmQwIJUi12kRES3Pbm/Sf3YXZVB1J28LUGeq3hvixxixvYmF X-Received: by 2002:a37:1302:: with SMTP id d2-v6mr3655701qkh.258.1526011059132; Thu, 10 May 2018 20:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526011059; cv=none; d=google.com; s=arc-20160816; b=uaWZgAeULGD9Umq1wIFdOPe1ldg/Z7XFYrw2tH8zHOW0T8vkeMp5rMcLX0eMlcDbJ1 ZMn+NNzb/eQxkkBMv69RyNHdgHydK/m+gA/ClR0ggue2aGqgwNyrYrzIIV98Jh9cAMYA PbvHsU+3tTeQa0+cFYjGyX80KF2TfXtrDAfsAT1kDFLERuHOa9GZ5l/h3UP6eTYAWNvW JZ14cAcvFZGUb9/4Z7egAzYrNWaeHXu7bGVtxtnlUVTdykLrox08AGopCbO1yNWLvZm4 Th5MhkAujLHfdeiC2l7JOs/Q2Z5Lwbv0VHiLtvWRdmekwX3+mmGcpGb9f/M1MiEAiGDl iJiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=u5toBM0F95e21BhX8aJZ9vu1MqtENLjShKlHTXRdd7I=; b=ugJ6aU0QBCcuE43Ex/x1D62A+HMzqBC+q6l5Y1TArDCNmRn9v6tTYL6FbSeFKRU/UK UFrMm6XlrgtQdoaTuuhWqXmtmkW03dCuBfc9vbDpX2VC16eBG+60uNYHdaLyy7JvwwUw XFbWsu2WtGiO20KF00s7bBgVR1VP3QxBuPKLMMY9w/oDYRvUuNkntSd2dMa2wAYwulfW ZI4zDfRLP1yBkWoWVfAU6ezJlLGycmD0BPK5URKf67RUU6J205gY6GXoASbLKaa/Voih 7ixQB2YRAM3SSwOaMjkL+HsQmgODdZoI7lp2kr/oiR33XAVF1F+6qZ0ywoB286gJPgZw VkOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=h9fUDkkT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m29-v6si334279qtk.99.2018.05.10.20.57.38 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 20:57:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=h9fUDkkT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGzBa-0001Aq-Jh for patch@linaro.org; Thu, 10 May 2018 23:57:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGz72-00054K-KO for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGz6z-0006B8-RN for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:56 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:39680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGz6z-0006Av-LQ for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:53 -0400 Received: by mail-pl0-x241.google.com with SMTP id c19-v6so2507530pls.6 for ; Thu, 10 May 2018 20:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u5toBM0F95e21BhX8aJZ9vu1MqtENLjShKlHTXRdd7I=; b=h9fUDkkTe+rh/ecr5rxmZGoIDK5eenZ3OExLpW2X5VcIYvXoc6ccsYdYOSns06xZov 1XVHBizGzURjuiV3+A/+53EIjqM6pKbFmke1+2+CpzxBJQF6fV7/6ZrqW+vkUjzDRulX vasl1W8rnEAoUHJDjgV0Xak3Jh7MclTUG/Sfk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=u5toBM0F95e21BhX8aJZ9vu1MqtENLjShKlHTXRdd7I=; b=iuwV3XQ/ICPHzz8vBoTFNGoy7m7DvWVZhb7e9U6GV6Kok3LxnGzptT0HplVSNLt2Is f1RdfbeR5uveZD3WyrTCL7jzWE1jEFBnOyM73fy2MV4a29Sxew4wBB4c1y1VbX4Iujjh QYvJev1UY90LEd3pmfQAPHxmfXWIHhteKsQsh2n/bl2ikLdeD1Fhl0ao2YP5IUDcu/Et tV2gFRIPyTt/bErInZW67FTwrjLLp4yo5eGdxhVD6+nNuQFsuHXiX0xMTV78whf0Geay qXVkkPEzsjEVDPdZCeBsG7fImc+eBVLSZxZa4XWgLWVMUO7f2L9Psy/7yeEYFBKH1ige TUHw== X-Gm-Message-State: ALKqPwfT977PNs/EdhfQtbm0gVU4AZ8D5D7Z0HAU1YHJ28bTyYVR1IAR ghVRjUbYFp5GvEq8uWTxA7O3GkldhOo= X-Received: by 2002:a17:902:1c8:: with SMTP id b66-v6mr3776947plb.156.1526010772369; Thu, 10 May 2018 20:52:52 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id e18-v6sm3495636pfi.100.2018.05.10.20.52.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 20:52:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 20:52:38 -0700 Message-Id: <20180511035240.4016-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511035240.4016-1-richard.henderson@linaro.org> References: <20180511035240.4016-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::241 Subject: [Qemu-devel] [PATCH 7/9] target/sparc: Honor CPU_DUMP_FPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Cave-Ayland , Artyom Tarasenko Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Mark Cave-Ayland Cc: Artyom Tarasenko Signed-off-by: Richard Henderson --- target/sparc/cpu.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index ff6ed91f9a..0f090ece54 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -647,15 +647,18 @@ void sparc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, } } - for (i = 0; i < TARGET_DPREGS; i++) { - if ((i & 3) == 0) { - cpu_fprintf(f, "%%f%02d: ", i * 2); - } - cpu_fprintf(f, " %016" PRIx64, env->fpr[i].ll); - if ((i & 3) == 3) { - cpu_fprintf(f, "\n"); + if (flags & CPU_DUMP_FPU) { + for (i = 0; i < TARGET_DPREGS; i++) { + if ((i & 3) == 0) { + cpu_fprintf(f, "%%f%02d: ", i * 2); + } + cpu_fprintf(f, " %016" PRIx64, env->fpr[i].ll); + if ((i & 3) == 3) { + cpu_fprintf(f, "\n"); + } } } + #ifdef TARGET_SPARC64 cpu_fprintf(f, "pstate: %08x ccr: %02x (icc: ", env->pstate, (unsigned)cpu_get_ccr(env));