From patchwork Fri May 11 03:52:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135488 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp375308lji; Thu, 10 May 2018 21:00:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqt6BrUCgZPAEzYwpejEwv03Zcpx0gmm61FI+FFmfLKpjhcRuKeE+N6d9uARH2hYdMHSXQx X-Received: by 2002:a0c:e609:: with SMTP id z9-v6mr3788012qvm.158.1526011247904; Thu, 10 May 2018 21:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526011247; cv=none; d=google.com; s=arc-20160816; b=B4gNBhaFysVM/DkPjW3+Wu+lC4mM2mnYf0XUC5+pYkwnoEOYFeKSm6tEiVbnpArs0V 1bg2FKWS9QaJxR4SYvVkUjtnjpPmxSoC4DN5v10HP/IOGiwk/S/HMqpu76KeZcrDpZAN AL8ujGvKReEIUmJXowPnDJNfIGH0cSkjxf98ZvJPWKQjIPitEGS8iP1RmoZ8bLVeIdSU yDnD9p3YBehHhtdIEfsNHrBQpmAYg6cf2O8rKkoKSKi3EufPbb6yyDCrXurQjwkUeBiQ sLEaTAGRwnjgM5hk0NEUUH+A+Ew1Bx3/ubnW3V5B1HN4lspBseemELSBnBSsOWCS97RM eZ+A== 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=kOlz0dzITHfeuvTwNM5Ew8j6f8Vgtbu8LacUAJ0x4Jc=; b=RXHNoUKWRLuGLXaa/f2DrEprZ5BFKaw06qH65CCwMj+gMpDVwy/Om0O078Nqg1seVE wiXwGPiBsAlCRIXHaFD0WUkQtpDjRStNulxtKbh6nBP9S+mxshxOXcvxpFk5vdSC/E5Z ZRkd4+Fsfava3HVUJXeHIK0mK4HnYTgaUbCjzcsdIpE3PkFGvmVml+wOT3X7n9jiToA1 nkigMdEej9vtcl11w216iC4YXunS7fMq6cak8ciu9tcd1k2tzJ0TWNDtO8Arfw38x8qB lit5fIpHfOJnMk46dVR5wl3QM5Cs9sWufcPXyUuY8QOnS0xc8N9dt326R4fTP9lQHHsk 7vkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Xqhrwqv9; 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 q7-v6si2326048qtk.187.2018.05.10.21.00.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 21:00:47 -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=Xqhrwqv9; 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]:36633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGzEd-0004kC-DF for patch@linaro.org; Fri, 11 May 2018 00:00:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGz73-00055j-1o 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 1fGz71-0006BS-7C for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:57 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:38274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGz71-0006BG-28 for qemu-devel@nongnu.org; Thu, 10 May 2018 23:52:55 -0400 Received: by mail-pg0-x244.google.com with SMTP id n9-v6so1857848pgq.5 for ; Thu, 10 May 2018 20:52:54 -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=kOlz0dzITHfeuvTwNM5Ew8j6f8Vgtbu8LacUAJ0x4Jc=; b=Xqhrwqv9vDvRstfX1hxJE2YZt5SdSG81MxEvQ6l8HZYHy7NoUHjZyEyp6RvXQyLTJC 3lvI8nBjCT8GNChDDsWVdEzzUNWYVN/CX6XiOWgBEwrBAqPSX2nn1WPPni2KuVBOEyS/ ty29Q9XaDHzoim8lfbymB6/Qtq8Yei9GbTdIQ= 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=kOlz0dzITHfeuvTwNM5Ew8j6f8Vgtbu8LacUAJ0x4Jc=; b=ZetA/GAXEIlCpi0WgAD58bysckBD6i2p59Bng73/U9W7J7HNWdIgmKDWH9aBSqc0/v a+So0/Fk25IkS80SuzjWpFei4E/MwIW08wTDGgFPNtO5OU//j9//6KDxQo/HrdTyXl8i xah1dV0x+wqfZcfg4dR63zNshxXFr/gN7ku+++L8QQgvcfwChrIhErJl78f+TAkPFN3B kgxX3OwoICj3IDmXxS5IMz5lI/DNXubDO9rl9Bcdig2EHSSBL8mdxgdeh5ReWd37iBUP O27eUtngdHptg0/bx9mJmaA73D4ZyunA/zgpUurdYgiVMCn9KwLSDtmfpaT2oz8vPZGf g51Q== X-Gm-Message-State: ALKqPwcrA+dnmvrvmoSz9N0FhsMZdL57jEYxQL8o9bUOCjOfcTsaOx8X nPXcj8oetJ7Qkrbxj2P3+A2CKF9m/uc= X-Received: by 2002:a62:2218:: with SMTP id i24-v6mr3831993pfi.53.1526010773715; Thu, 10 May 2018 20:52:53 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 20:52:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 20:52:39 -0700 Message-Id: <20180511035240.4016-9-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:c05::244 Subject: [Qemu-devel] [PATCH 8/9] target/unicore32: 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: Guan Xuetao Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Guan Xuetao Signed-off-by: Richard Henderson --- target/unicore32/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/unicore32/translate.c b/target/unicore32/translate.c index 5b51f2166d..63619e7d2c 100644 --- a/target/unicore32/translate.c +++ b/target/unicore32/translate.c @@ -2101,7 +2101,9 @@ void uc32_cpu_dump_state(CPUState *cs, FILE *f, psr & (1 << 28) ? 'V' : '-', cpu_mode_names[psr & 0xf]); - cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); + if (flags & CPU_DUMP_FPU) { + cpu_dump_state_ucf64(env, f, cpu_fprintf, flags); + } } void restore_state_to_opc(CPUUniCore32State *env, TranslationBlock *tb,