From patchwork Fri May 11 03:52:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135485 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp373484lji; Thu, 10 May 2018 20:57:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoNKAAnjtSHakxoC61VHSE4LiyqH54PaZjzlBFNlzoLDm6+T4egEK7CErUp0vI/58N2s6Wb X-Received: by 2002:ac8:41e:: with SMTP id v30-v6mr4089061qtg.270.1526011074055; Thu, 10 May 2018 20:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526011074; cv=none; d=google.com; s=arc-20160816; b=PteYWB3ystN2qZ5q4Aj9YHSiM7tTGU4wxEC4PU88ktJjIiJ++nHW22yG1gAHHKpnuC 3WK7v17fBivFI4tIUt7Bsqd08UUDVeXMw2sMGf6OIjovoir4R+1JKjGMUsxrTU6dYM9H 74Q/Yy/Z8j4ReZcM2WngR+q+FecUPtLqsCOooS4HtVd+Doqmm8JN2AxFKjPxowlDCRMC uR7XV5Y5PUkp/ILYNEYxsL/q9vtocipTPmTiiEWCQ6Uhpx4s37jayYbPLorEGObG+mF1 D9rlnWeN+oHbhYJhYZRl1XZcXvWOabaB97nNfhKv0rN2gBZ78G11GHS6SeCEbyStHqv6 csYA== 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=12WlYGbJg22jRF/bj4Ba/0+afyq0nZDswf9yRybpcQ4=; b=W4cS3IYGXSk6Xt3PrNP+9XtGn4ROi9kVEa1pHrYuu5KMnvy86S5zdS1hGEvi57nlYa CTCvuNWxIYaq23aucYpO+hNz2VtqJrnx47lkCMTTBRCvVT+JDjLvhv+fGuyBiSh3uHzI d0GpQkCSVuEb8EawlQUkWM72jCSubQGA1raMDEaKaYPJOvy7DlVydc55Wt4/klbPGpkQ VZraPjiJX+SyTnzzpiRZkeLAgVST0Kk+G3a6FEYbx4609o/EwrvSmmmeWTDkgRoIUraY SIlx+6looVoodCbzNL2ngoAA1XFIg34Fp2sL9pshQ4AwRIZELGFBoPj+wAWjuuMuHJbv EC1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MVHNBdb+; 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 y58-v6si681282qta.260.2018.05.10.20.57.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 20:57:54 -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=MVHNBdb+; 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]:36616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGzBp-00019x-JS for patch@linaro.org; Thu, 10 May 2018 23:57:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGz6u-0004e0-08 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 1fGz6t-00068H-85 for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:48 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:43570) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGz6t-000681-1w for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:47 -0400 Received: by mail-pl0-x242.google.com with SMTP id a39-v6so2495925pla.10 for ; 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=12WlYGbJg22jRF/bj4Ba/0+afyq0nZDswf9yRybpcQ4=; b=MVHNBdb+WywonlnpKF+gVkH1oKAmsJMhIJ8ymeJE6rvN1myA/U2ghqbbJS2jTl2HAW V0YNE7SCyXhQRJWSMHRuFcth2b+isrsO262JaizrmOCFc9zl6K94Yurs/CzM2XRNQzpP 5DzL2gPjJXHhl20s4rFLDhRXaKG4rNkCVAAPA= 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=12WlYGbJg22jRF/bj4Ba/0+afyq0nZDswf9yRybpcQ4=; b=ow11Nz1aN5NraEawlAjNaDHqcCegOOzBkDBuE0OcTZU4h62MXo/FEKEdMwtVoxV+0h 0hzv9tliECjAzd9vXFVmQBoCjRZBna+eTES7+zZoLOlsauj+/UYqmDdfenVYnYd8MLGa e/wysa+2q3/5wUFFCmwR0g8yI6D+X+7vAkw1cV+HZB/4w2fgs+MBC7Gof8N3p0g6qJ5R jWTaaGOj90Qe5HQAt58rwO/Y1NdzmYPPuBu49HNU8L6aexEcUiWKDqy2PvQ0UmntO6pX ReeBAgN2InhfpUN/mDxZUdL38GHPKWn58Nimd2laLUe5wnZK85khyauXJ6l39PZC14vl EOVA== X-Gm-Message-State: ALKqPwdR0KhIO8W8eBZrFpFrduTUgjcZTqDz6EEJ0ddrDPbhFW3YZpHr F7WkxQ0Nz8TnRRVem91637umUkn7hKY= X-Received: by 2002:a17:902:b78a:: with SMTP id e10-v6mr3941639pls.260.1526010765773; Thu, 10 May 2018 20:52:45 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 20:52:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 20:52:33 -0700 Message-Id: <20180511035240.4016-3-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 2/9] target/mips: 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: Yongbok Kim , Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Aurelien Jarno Cc: Yongbok Kim Signed-off-by: Richard Henderson --- target/mips/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/mips/translate.c b/target/mips/translate.c index d05ee67e63..136947adc5 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -20445,8 +20445,9 @@ void mips_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, env->CP0_Config2, env->CP0_Config3); cpu_fprintf(f, " Config4 0x%08x Config5 0x%08x\n", env->CP0_Config4, env->CP0_Config5); - if (env->hflags & MIPS_HFLAG_FPU) + if ((flags & CPU_DUMP_FPU) && (env->hflags & MIPS_HFLAG_FPU)) { fpu_dump_state(env, f, cpu_fprintf, flags); + } } void mips_tcg_init(void)