From patchwork Fri May 11 03:52:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135483 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp373311lji; Thu, 10 May 2018 20:57:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZriyW0WVZ7gCHfcOHKFxPvq9t2Axr5ZU6KROUYwuZCk39iN1iQ38+iJryGhd4UpipjFCQHo X-Received: by 2002:a37:59c3:: with SMTP id n186-v6mr3672300qkb.72.1526011053767; Thu, 10 May 2018 20:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526011053; cv=none; d=google.com; s=arc-20160816; b=GWHFscv6aEBOdOyyaGRr1s7iEiY5r5m6Z/6Hg3w25+L0PbI2uNPHuurcnnueV7wbQK LMygwiAxk3Qm8e14QyDDUnwmaDJNBgQW0ygQbAsZZ+hxeL+nLXh71M/RURaoZczBxtBj s6e2hXGMH+DptuSJ/KaX4A2kUd6NYl862DUjT9B0rOhx2SCzT6wgNe5zOmfDyRjt7vwv FYPuwZvgoe80EDe7bWHU2rhb2lUgci4R1RiCfW400npc65nolTN9qrOJr8ekFoJ+JLqB LEak9mUlEFRoL9Egyhx7Dj4n/mdh/etd+uCov/jG1vQ1gbyt3I0gOdv1nYaxy8X66tSU XO3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=iSZ30lM6QHDlpnLmLFITlyJWrsWR88KFBPa20C3d3YY=; b=zpME1OTurbrEb8//P+4dAhES1kZ9OZynljzA9mwJtxmJtBaro0HX3vICTvCxTxm7a1 Nhjwa31iIKGzz18G9UrHa1x3DfLkqKrj+yYoccarsa5/6yZjlegClcMIdku1Rb4AZq4Q ieCbQX7C8qx6DTrBmTltABZq5gwjnXYOK3cV/2kUh88jjJliyVg/BzTNcWg/bcoXy8A/ f1U3Ba1NBvkglJilV6p8zSec4aqpyUsAKxPUchf3tXflprs6upQQXofIbm0kNHTcVCWC nQrcvTsobL7gsJ+7YWlLTxmFGjEoUvahGpMaPP/ETnzpxL/ytP1XMmIcc2BbU2wwWULi LnKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fEcZtcmv; 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 i2-v6si2048979qkm.342.2018.05.10.20.57.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 20:57:33 -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=fEcZtcmv; 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]:36615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGzBV-00016r-7r for patch@linaro.org; Thu, 10 May 2018 23:57:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGz6t-0004dg-Vo for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGz6r-00067m-Rz for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:47 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:41820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGz6r-00067b-Ly for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:45 -0400 Received: by mail-pl0-x242.google.com with SMTP id az12-v6so2500480plb.8 for ; Thu, 10 May 2018 20:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=iSZ30lM6QHDlpnLmLFITlyJWrsWR88KFBPa20C3d3YY=; b=fEcZtcmvVSEORCUOpHrPff9edM1C7WqF7fXtEKlIzpAc+dDGOt+24v2qD5MISgqJMh JzYRAQy+Yn/JzgBJk57T/tQDnEXgzhDzc5GMlrMsI1JCCsGxN2x7xjcvFAUYytmHraEm z2oIKcspIsUrdHkp1s0UEyVntUL+fMba7IdvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=iSZ30lM6QHDlpnLmLFITlyJWrsWR88KFBPa20C3d3YY=; b=gmV2JyluQmfxLFsmDriooLkx0pvwb9PZuqGOqvVwWSibOtehCg78zojQw+PPFQe4ft ohRScreiZxgG+XpagkrqPoMa8UMNnNAfI3hiY1TO2W1CTBg7vvYBpLGfij730cKqXzIz 9edM2NLtuCTyit1APXm/GWzX6OCsyTYZiaveDIfd5c7on8ffQPvg0QgE4K330ww+lg1u 5vgFYretzdeybPYjDlAk018naOF6pbKzk1hBQMNTCDGMRe+hjbsdfVdgAR2lr6ObjNrF DG5XBKJFydxz4JAX8e2z5IZdmq0KwYESyOdoFajaij2+3ZPKz1V2ilW6kRY+Y9xRD8QB qDrA== X-Gm-Message-State: ALKqPwffFMYbBGflJ96Ar6xjBzdrTvGOoUStV4mAOnfBeMMNlitG87eI rG+HtCPcEH2eiyb2TQEA9UtMiWg94YQ= X-Received: by 2002:a17:902:b60a:: with SMTP id b10-v6mr3789268pls.221.1526010764336; Thu, 10 May 2018 20:52:44 -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.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 20:52:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 20:52:32 -0700 Message-Id: <20180511035240.4016-2-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::242 Subject: [Qemu-devel] [PATCH 1/9] target/alpha: 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/alpha/helper.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/alpha/helper.c b/target/alpha/helper.c index 8a6a948572..57e2c212b3 100644 --- a/target/alpha/helper.c +++ b/target/alpha/helper.c @@ -442,20 +442,19 @@ void alpha_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, cpu_fprintf(f, " PC " TARGET_FMT_lx " PS %02x\n", env->pc, extract32(env->flags, ENV_FLAG_PS_SHIFT, 8)); for (i = 0; i < 31; i++) { - cpu_fprintf(f, "IR%02d %s " TARGET_FMT_lx " ", i, - linux_reg_names[i], cpu_alpha_load_gr(env, i)); - if ((i % 3) == 2) - cpu_fprintf(f, "\n"); + cpu_fprintf(f, "IR%02d %s " TARGET_FMT_lx "%c", i, + linux_reg_names[i], cpu_alpha_load_gr(env, i), + (i % 3) == 2 ? '\n' : ' '); } cpu_fprintf(f, "lock_a " TARGET_FMT_lx " lock_v " TARGET_FMT_lx "\n", env->lock_addr, env->lock_value); - for (i = 0; i < 31; i++) { - cpu_fprintf(f, "FIR%02d " TARGET_FMT_lx " ", i, - *((uint64_t *)(&env->fir[i]))); - if ((i % 3) == 2) - cpu_fprintf(f, "\n"); + if (flags & CPU_DUMP_FPU) { + for (i = 0; i < 31; i++) { + cpu_fprintf(f, "FIR%02d %016" PRIx64 "%c", i, env->fir[i], + (i % 3) == 2 ? '\n' : ' '); + } } cpu_fprintf(f, "\n"); }