From nobody Thu Oct 30 15:31:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526011221811750.9801803651154; Thu, 10 May 2018 21:00:21 -0700 (PDT) Received: from localhost ([::1]:36626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGzE4-0003ZT-Ig for importer@patchew.org; Fri, 11 May 2018 00:00:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGz6v-0004iU-Ni for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGz6u-000693-OL for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:49 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:38219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGz6u-00068a-JB for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:48 -0400 Received: by mail-pl0-x241.google.com with SMTP id c11-v6so2507742plr.5 for ; Thu, 10 May 2018 20:52:48 -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.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 20:52:46 -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=iWnrUzfrfUkJ0mQcyr624Z2twIWfrH0XrfF48DVcjXY=; b=RgY3Wlr7DIPKAsO2qRc6X2uFPuAgOK+uWWAeeRwj2w8sLw0PResGzJ4C112BlG8aXH w8VZo0lIewo2GMEGrYRuncyIZvHK8h5RIAMcoU0OT/tJee5ditR8iYU2VJ2Y8UDePKMV AmgpOiqvy7dSf8Tox2WZYV+KquzzSYA0UqyMI= 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=iWnrUzfrfUkJ0mQcyr624Z2twIWfrH0XrfF48DVcjXY=; b=CqiqIkYJwFNUAlFPpMY5bumFalaw0WwYonLsfMGxC1pcAwxZyDs6QWP1+ngVlV4phY 4WAbFS7OG4NoDQO9fZpBdAp9zSpB8gOKOMvzY6NaMFGKgTDJKOmp6bMq7gSVK8WKnCnL 5U6dPMoeMbrllukJRvK6kRTVPI1tzZSXV4PnPupwTs/2z1FUNPLH0sQKIKhQYJ2+c+iw M9PKT4ZPLsIekXZLJ0O97QaNREAII1aa3OSjx93LGz4ArQM+SiOOyEKEC4cLd3deT2an gFhbzp2GRggJ+AER1ses1nAshwb907xXTxvw46YbfXD2WDSIBKl587Di//u98YLspsoT djhQ== X-Gm-Message-State: ALKqPwfSS3/F2bsAZh5gG5tQT9rwETAuNa1dTx1Baxe3/RcvTb+j7xUm 623+XlvxyvInCFtKOh0RK4FRj5ON5zc= X-Google-Smtp-Source: AB8JxZpkZ5vht0RlT6XKEqErj4I6OKhZGagUSYBBKMNTX+G5R+XZLu9u3Yi5AWbhu4KN0d+iFnmmlA== X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr3901374plp.333.1526010767199; Thu, 10 May 2018 20:52:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 20:52:34 -0700 Message-Id: <20180511035240.4016-4-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 3/9] target/ppc: 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: Alexander Graf , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Cc: Alexander Graf Cc: David Gibson Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/ppc/translate.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 2a4140f420..fd66c80cc7 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -7048,14 +7048,20 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, fpri= ntf_function cpu_fprintf, } cpu_fprintf(f, " ] RES " TARGET_FMT_lx "\n", env->reserve_addr); - for (i =3D 0; i < 32; i++) { - if ((i & (RFPL - 1)) =3D=3D 0) - cpu_fprintf(f, "FPR%02d", i); - cpu_fprintf(f, " %016" PRIx64, *((uint64_t *)&env->fpr[i])); - if ((i & (RFPL - 1)) =3D=3D (RFPL - 1)) - cpu_fprintf(f, "\n"); + + if (flags & CPU_DUMP_FPU) { + for (i =3D 0; i < 32; i++) { + if ((i & (RFPL - 1)) =3D=3D 0) { + cpu_fprintf(f, "FPR%02d", i); + } + cpu_fprintf(f, " %016" PRIx64, *((uint64_t *)&env->fpr[i])); + if ((i & (RFPL - 1)) =3D=3D (RFPL - 1)) { + cpu_fprintf(f, "\n"); + } + } + cpu_fprintf(f, "FPSCR " TARGET_FMT_lx "\n", env->fpscr); } - cpu_fprintf(f, "FPSCR " TARGET_FMT_lx "\n", env->fpscr); + #if !defined(CONFIG_USER_ONLY) cpu_fprintf(f, " SRR0 " TARGET_FMT_lx " SRR1 " TARGET_FMT_lx " PVR " TARGET_FMT_lx " VRSAVE " TARGET_FMT_lx "\n", --=20 2.17.0