From patchwork Thu Jul 20 15:04:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 108365 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2260127qge; Thu, 20 Jul 2017 08:11:52 -0700 (PDT) X-Received: by 10.55.168.193 with SMTP id r184mr5534984qke.204.1500563512281; Thu, 20 Jul 2017 08:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500563512; cv=none; d=google.com; s=arc-20160816; b=Fm0Fv4ZrTqXnRm/ZO4232D6h0ORy6OFqDL8wL5T15fl2iWYdOTGs/MeMvIMY8+rnve 3hpbh1vXvvj929IcG/c9MJUUxyZJYRJkAEfo3K6kAKa7M8Wvf7M78k+bb+VzoGfmX7sF EXHXVZfkBgpaj1ulMG12hASH/p2ismaMT7N76jZHJ/NmHnnK56uhy41SyzY6ADQbJJ0d Pqr+uwYsFTWoVmm1si2VOFXFFtba9OnNmCKlmU/MkJVCG1BZeVojoz1TwtUUAOoWIRrv 4rJRGzTrKxlFPvZyvWC25IHotxNhHXgTfd9qKM804Ycf+w/0AkY2IJUN4Y3Zh2E06S23 60pQ== 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=C4wnms8N5peXGgCcuBPjAUcVmyQ7Lf0s6SwzQchQWLw=; b=X46mH5pN5GHcFjn3Eel+19lPyqq4YsBJTg/xaT1tJJRNpP1he+3NRPbTSN207/0jkD ej8cMDhwV5wgvSoh1cZf78JlAMMLd9jupzrFNnTZ6ITQRSM3207/UC3xwcZCk4OygUSF neXla+/YACOWxCvqA5mEGLYm7ZLtT9Qo5kHX5O+kjQ0blhWV83iEpUrwU8rgnHy0Tlw5 ZWY3Aeb5yTmg0Tm1Nw5wEybalAT/xSofZSDXeGSb5c3ucOGMxDFlyvyc4LMoMvOJ0G2F ONPWBdGw7vBaO6p+alaDTy6hbuLBLks/AD3TKtGuNzL1TYZWvasmrIdSNP5TLeNquqqh UUBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=G9Nr0Epz; 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 1si1748812qtd.193.2017.07.20.08.11.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 20 Jul 2017 08:11:52 -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.b=G9Nr0Epz; 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]:38500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYD7F-0002DA-Oo for patch@linaro.org; Thu, 20 Jul 2017 11:11:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYD0T-0004Rn-E3 for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:04:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYD0R-0007qg-Ty for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:04:49 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYD0R-0007qH-LT for qemu-devel@nongnu.org; Thu, 20 Jul 2017 11:04:47 -0400 Received: by mail-wm0-x22e.google.com with SMTP id g127so29685145wmd.0 for ; Thu, 20 Jul 2017 08:04:47 -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=C4wnms8N5peXGgCcuBPjAUcVmyQ7Lf0s6SwzQchQWLw=; b=G9Nr0Epzwh5vb7iOGJNSWUzXHitydHpi2ZW/dW5O+V84xM+O5ZRYWtCQb39Bsb+blA ScW03PpHef/syMqtI8/CkXHgo1A4oB4d3KHprlbjfxd3M3KNTBFOyxmu/oaugoZ9GM+u MTmZT7M4PJWxpASx+UHXP7clfIRYu00YABYd0= 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=C4wnms8N5peXGgCcuBPjAUcVmyQ7Lf0s6SwzQchQWLw=; b=GXAKhRP57OfhKERZicQrsCG2L9JR83YepfCRiH9pyKBtuYTBEgOCD2slKLhctXL01U S+0pyhEygx14v0D3tl2QnBtalfM5T0LX/MIUpdP1ekozNsTsRb0tNRlK8LH6v1ocx0s0 UFVG8l+RhJDtAqr423ZaDmPOtzkf8wtEuLtu+nDpYyWnw1aDv2MCwV+TPbR0Xi9WkhmT aSxgXzQuTNo/gIdEXZKVhu9twswkG29eXM+SMYpMr7ncHjOZVg5qhBsQxOU8TYJj2DSO Ow7KJjNSMUJQ/cn79UHb6LLnjL66gieFWeU2MnpBeaGo1bB8Bp7xpQbErvP2+ftc6I4b bxoA== X-Gm-Message-State: AIVw110lIFncBVzAxxm/grbCU61PdAxKTsGbVK872cRsZ+PEplSK0mxK Xt8cxGcPDKrl1znY X-Received: by 10.28.74.205 with SMTP id n74mr2562703wmi.137.1500563086582; Thu, 20 Jul 2017 08:04:46 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o22sm6681889wra.42.2017.07.20.08.04.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 08:04:38 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 171653E06FF; Thu, 20 Jul 2017 16:04:33 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 20 Jul 2017 16:04:12 +0100 Message-Id: <20170720150426.12393-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170720150426.12393-1-alex.bennee@linaro.org> References: <20170720150426.12393-1-alex.bennee@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22e Subject: [Qemu-devel] [RFC PATCH for 2.11 09/23] arm: 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: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, rth@twiddle.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" --- target/arm/cpu.h | 1 + target/arm/cpu64.c | 1 + 2 files changed, 2 insertions(+) -- 2.13.0 diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 1f565fd503..adf2524fe0 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1230,6 +1230,7 @@ enum arm_features { ARM_FEATURE_THUMB_DSP, /* DSP insns supported in the Thumb encodings */ ARM_FEATURE_PMU, /* has PMU support */ ARM_FEATURE_VBAR, /* has cp15 VBAR */ + 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 */ }