From patchwork Thu Feb 8 17:31:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 127693 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1712459ljc; Thu, 8 Feb 2018 09:42:56 -0800 (PST) X-Google-Smtp-Source: AH8x224C3cHjgtaEMU5OqtPi7oHCFg7CSUQE6OstMVWBZvQtAInSYJInbzzeRz42jr2+Abyg0ROe X-Received: by 10.37.172.96 with SMTP id r32mr1103443ybd.454.1518111776321; Thu, 08 Feb 2018 09:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518111776; cv=none; d=google.com; s=arc-20160816; b=oOxHCMJMlavDAIa9E0wgbUnh9Ax2E+jaH4bHT27o7GsHyb+8bZks3ZdjIkrUve9fbl F5H3QRazQYe4J7MH1b+7b0VPPVFpoPTG4bbqnc3evRiqvpX8d7PI2Ay9TONR2iW0wvcF Nh+L5xXAxnqU3GzF3aDxFypY7izGaNzJf0UumGgoJgcf5Wj/eoB8UrD/G+0PifbvhZz/ Y6OQy00SuQo3+8/E+mBng1WNAvWYK389b2XksoCjMOaS9QWFTxhd78L9WNexaU0zdysf l8FIFoegyQ9hxMOYGPV+dYZlKhWtxHTi5l6chi6qjVgj7xCUsNRvYRz82ZdCHuWIG6s6 GB5g== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=5FcM++eRyZVbmGXeJhC+0CkujVOg7r55axUt+Od4YVI=; b=lpw3ixZfZmG9BqBbCi1hWy1HM+wi8s/tMcZqava+kU0kBdVWFUAiygIdI+VH/aG6rY 9/F0oOJa/ccA6byIhf0QnYEq6w4aQT/i2r0xx1Tvw6y6/NXQD0fJ1SaQhkt+uhHhZ4Tu I0Fmaa18JpB/xsqukwH7G1rGGfLRVrzQcV5oyFKBk0dcO9KdwXGcev9IC/Ssh/r03bjn vUalTT1a1GEC6R3aDFJGP4T+Wxk1FicT2epPxTNAoVpMjig8WzTamzuLGJ9rZU/eivg3 B0NLYQnEPGQtoHzoTGtf4qyY/omHPiunLbgt91X8oHcKuE/zdpHvgQxzDT9aXb84DG4L mRQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=g6TpQYVc; 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 j65si82513ywc.48.2018.02.08.09.42.56 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 08 Feb 2018 09:42:56 -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=g6TpQYVc; 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]:57091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejqDn-0003sq-MT for patch@linaro.org; Thu, 08 Feb 2018 12:42:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejq3I-0003Ee-Km for qemu-devel@nongnu.org; Thu, 08 Feb 2018 12:32:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejq3G-0006QN-Gu for qemu-devel@nongnu.org; Thu, 08 Feb 2018 12:32:04 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:38007) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejq3G-0006OQ-BY for qemu-devel@nongnu.org; Thu, 08 Feb 2018 12:32:02 -0500 Received: by mail-wm0-x242.google.com with SMTP id 141so11403198wme.3 for ; Thu, 08 Feb 2018 09:32:02 -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 :mime-version:content-transfer-encoding; bh=5FcM++eRyZVbmGXeJhC+0CkujVOg7r55axUt+Od4YVI=; b=g6TpQYVcbka+XI5aht5lLvQbo1SaYu85X9miYd1qRBbrC9h6YW3Wra++msBM8bQRTs r8ys4IR6jJS5Vf8QGxt2iDCV2H+YuaRSxSH5aVl3WDX0QEP0Wa9JiarjpLOtl21zItyf eIIu/Ql+61cmaeG+RZQ0DuEWabclRI0I2Otss= 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:mime-version:content-transfer-encoding; bh=5FcM++eRyZVbmGXeJhC+0CkujVOg7r55axUt+Od4YVI=; b=GImUC4mbQR0rSr1scz02KheuNZhJNu5Y0U78kYJyGFAweRqRnYdhUqp6PFC27xY+W/ M99bkDcSpEFgs3Z4UROyKhFzVcYW9+wALom19OoaBkadmu6U4CcuWTIKtt3sMDpGi25N +ovWhY5RS6qHAf/oALP3HElD0aqV4lRQlXJ465gusjuz06P+r7WdpyOxo94S23qMByDQ eh3eO3p9bS49DfkGWXr689JcudmIiiu5MJp1H9brODEdgCwrFAH1UM0xfNCV2wDVEvKy okSzria+RupNqy60hLLxFXgL+XpUNUHoqvfliwD52E3BvWEozyMkI6QJw0L/4P7sA2wY J9vw== X-Gm-Message-State: APf1xPCIlGrymjddBtjAKZQ4dZUMSpjkEczA/j85pDIkEp0dWvtPezV6 XxlFwZFvj7vbBsnZy/el7/CGxyC6Qt0= X-Received: by 10.28.167.215 with SMTP id q206mr43964wme.48.1518111121243; Thu, 08 Feb 2018 09:32:01 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id r64sm445050wma.15.2018.02.08.09.31.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 09:32:00 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DACD13E0B56; Thu, 8 Feb 2018 17:31:57 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-arm@nongnu.org Date: Thu, 8 Feb 2018 17:31:27 +0000 Message-Id: <20180208173157.24705-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180208173157.24705-1-alex.bennee@linaro.org> References: <20180208173157.24705-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH v2 02/32] target/arm/cpu64: introduce ARM_V8_FP16 feature bit 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 , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- target/arm/cpu.h | 1 + target/arm/cpu64.c | 1 + 2 files changed, 2 insertions(+) -- 2.15.1 diff --git a/target/arm/cpu.h b/target/arm/cpu.h index c7c922d79b..c793250186 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1339,6 +1339,7 @@ enum arm_features { ARM_FEATURE_M_SECURITY, /* M profile Security Extension */ ARM_FEATURE_JAZELLE, /* has (trivial) Jazelle implementation */ ARM_FEATURE_SVE, /* has Scalable Vector Extension */ + ARM_FEATURE_V8_FP16, /* implements v8.2 half-precision float */ }; static inline int arm_feature(CPUARMState *env, int feature) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 670c07ab6e..973614dfc6 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -226,6 +226,7 @@ static void aarch64_any_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_V8_SHA256); set_feature(&cpu->env, ARM_FEATURE_V8_PMULL); set_feature(&cpu->env, ARM_FEATURE_CRC); + set_feature(&cpu->env, ARM_FEATURE_V8_FP16); cpu->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache */ cpu->dcz_blocksize = 7; /* 512 bytes */ }