From patchwork Fri Jan 19 04:54:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 125088 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp136080ljf; Thu, 18 Jan 2018 21:17:04 -0800 (PST) X-Google-Smtp-Source: ACJfBovuhVOyY7Rzcsoqx3T1KyY1CwAa8F+z3TMdFAbBJwPARRG/utqbXjNNMtBnpiKXX4hnK4PF X-Received: by 10.37.44.195 with SMTP id s186mr7243027ybs.284.1516339024635; Thu, 18 Jan 2018 21:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516339024; cv=none; d=google.com; s=arc-20160816; b=utUVnhQCticUTSVq2S94i0+ciVjDvot5EOVieaWZmSlwDKmozpjrZoVPnibTnEp6+U Q8YSXxlSXQA8EqsUiV+FK5NNI0eBTCn0XpriahLi99+tqhnND3zvdg79cdtTgZRjpf4L 0LAZ36KIptbAyUp4sIOrRLU76pgPvuY7ujtYtbq1btKvo92d1nWfNmGiMe1HRT/nFGEP U/C0Vqp0xbdMcjMvOZeLBAWXg810WN48CsVwXPgsnuOQo/8lQP2B1WEC2gI7ynAFl/VN hTSYJRIaC0JL3FoQhnGFe6hYNUdFGSps56AfwwhqHecdkljHJ5cw3DwtNQTN/j5CUoUf XDeg== 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=woNrRoz9pFHE/sWC8b64H8TxwAXuOSje5AvdLVnP+6Y=; b=M6NE715b3o61SJhiJNZlDnMs+LwDhCiH7Uz3JjoWiTbGobDrD7rAzYF4xdP9apegzr O8WJ9oVJ72HDPMcwjBFwGtlMPGUrllyXEaIqnUNDhKxFGUAHkQ5xizIYxA57s3G/ZENA urgDQzRHcIlx9mh7UDmxqcJhFfmeQese4jRuNGUQOdFPf83nkpQij651QJt1GtGVXwE/ btZJAh8eXhnDoBLKqxP6wPbhKNj+WXtd1Sw1+cVKONTx1u4pksliqjwBm2OcSk+l+w/S v07YuZ+Qhm93DLY2CfDyvlNwI7oLZhCoiqVpKCBDRG7ag5XaaPzqAUZu+N9WIC+Opywa F/gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Kehbnv9N; 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 f6si458936ybk.807.2018.01.18.21.17.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 18 Jan 2018 21:17:04 -0800 (PST) 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=Kehbnv9N; 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]:53125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecP32-0003xz-29 for patch@linaro.org; Fri, 19 Jan 2018 00:17:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecOhp-0002NZ-4t for qemu-devel@nongnu.org; Thu, 18 Jan 2018 23:55:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecOhn-0000Ud-Au for qemu-devel@nongnu.org; Thu, 18 Jan 2018 23:55:09 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:38313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecOhn-0000Te-4e for qemu-devel@nongnu.org; Thu, 18 Jan 2018 23:55:07 -0500 Received: by mail-pg0-x244.google.com with SMTP id y27so552965pgc.5 for ; Thu, 18 Jan 2018 20:55:06 -0800 (PST) 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=woNrRoz9pFHE/sWC8b64H8TxwAXuOSje5AvdLVnP+6Y=; b=Kehbnv9NUtBT0iBs5D4ObCZcJ/xGs4q1spQXBXkmJLt3BKiHp9iDQkAQGLxIpZKSts O03befPmSTxcq6CMOJQOKS4DZnvTMpYD5gYvIj7diWwHp6Sxi7nyWxZWk1YGVQHv2voW OfLnubzFmWPz5ZRFD8gWln5rGDYVtyFM6bFKI= 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=woNrRoz9pFHE/sWC8b64H8TxwAXuOSje5AvdLVnP+6Y=; b=TexZzmCqXyhFj1gDc2g9Tw1W9KKXT6SE0Mv+Fi2qfSFmcyD3GHUC1Wn/DWwcuI61R0 sVgFM4B2Ufgtq9OTYnUG3u7TpONVz3D3EfM2CfvOS3KmLpX8uWi6NLDkE0nBZkDziKkq YummGPv/Tm+CPD8qnbLBr2o0pUAsjoFcoN2j+bUvo36iZv15aN+VnaldN/LNFEqa6Fhf KuvF9j+46+2MWDAQ+5SoyD9WKZdhBGbFhgNrWDfETmJj2f12FxJymm6r6jkE7qHPuPj0 E1NXtHQxDSTr2x4NUHvdhdn4uPk0npG/UogKP4iyLmLMsORmz9Uk7kC3ZfnSVp8DFNh5 Pymw== X-Gm-Message-State: AKGB3mKc6OT3e6A8m/32cLF2wpQLU1Mb7s+vLWydUoc/wCDX5pbo0It6 v/8Z9g2apuGG0YmXy3k+UcbuHILYBag= X-Received: by 10.99.1.151 with SMTP id 145mr31245410pgb.229.1516337705845; Thu, 18 Jan 2018 20:55:05 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-183-164.tukw.qwest.net. [97.113.183.164]) by smtp.gmail.com with ESMTPSA id m12sm13690022pga.68.2018.01.18.20.55.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jan 2018 20:55:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 18 Jan 2018 20:54:37 -0800 Message-Id: <20180119045438.28582-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180119045438.28582-1-richard.henderson@linaro.org> References: <20180119045438.28582-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 v2 15/16] target/arm: Simplify fp_exception_el for user-only 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: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.14.3 Reviewed-by: Alex Bennée diff --git a/target/arm/helper.c b/target/arm/helper.c index c0e5f321c5..44814af99b 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11707,6 +11707,7 @@ uint32_t HELPER(crc32c)(uint32_t acc, uint32_t val, uint32_t bytes) */ static inline int fp_exception_el(CPUARMState *env) { +#ifndef CONFIG_USER_ONLY int fpen; int cur_el = arm_current_el(env); @@ -11763,7 +11764,7 @@ static inline int fp_exception_el(CPUARMState *env) /* Trap all FP ops to EL3 */ return 3; } - +#endif return 0; }