From nobody Tue Feb 10 22:18:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1507912023123878.4620106316105; Fri, 13 Oct 2017 09:27:03 -0700 (PDT) Received: from localhost ([::1]:51031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32nV-0003vm-8u for importer@patchew.org; Fri, 13 Oct 2017 12:26:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32lT-0002Pw-6S for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e32lR-0006VD-Tl for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:47 -0400 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:56617) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e32lR-0006Uq-Ng for qemu-devel@nongnu.org; Fri, 13 Oct 2017 12:24:45 -0400 Received: by mail-wr0-x22e.google.com with SMTP id r79so1429536wrb.13 for ; Fri, 13 Oct 2017 09:24:45 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f27sm2437980wrf.63.2017.10.13.09.24.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 09:24:42 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8BE3B3E06C0; Fri, 13 Oct 2017 17:24:38 +0100 (BST) 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=i94aSXWM8jvmZsWcCUdhzW0nGXo062r23fZ6DTOQKzM=; b=SaZrodncSFDGlFFd3dOB8L8eQprBd38QB+wNHzBUjlrLFsJQeH4K0xb5OquMqSR/ZE 1inHES8uPYPDMTqfnILtCaoPAhKU4QjoRxIzf4HcHsjYbVwHSdsUadDZN6VQr12shDe6 MkKU2P9tVQfnxA8AFgDYHk63W3ijQlTyNVTyU= 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=i94aSXWM8jvmZsWcCUdhzW0nGXo062r23fZ6DTOQKzM=; b=Kb5dzyypGlZYWlJLw7NDeu6maUD6R0BUiPjraRWn7MGu6ETsb6F8cCVmCZ32FoxaLh cJ75oXaiLA8zVcVGa7FircUYYf/vTlo6b32a4P7u/yCZtxhMrTBaR1KT2ZDjhdiXJ//L WBXSnSfYU+b91X8dpnUVuv/9KShg2wUwtTo9gStDLvvEJKt7BPcTCVqUCBijM//L4cHc A7DexcVa+823/fxEs8fkABY465BI0u9avqgE9aEgzOfVh/7nkE71pvUaj7hddQ3BVq35 Yp6iZ9utEx/pVgZQJd/Ms5xtNBT1vpJIuMvjyFuvFBoOsS4H3k/t9dCeuTITIKfs7/NQ RUzA== X-Gm-Message-State: AMCzsaV3QuUmYsNJ7hncYp2ZcfQwOHy8no+ZvrNAsMC/hR11iCK6Znm6 dnj/zHdjc3JlT7jNs9AM/HcZnA== X-Google-Smtp-Source: AOwi7QCs5jh5Dg+E9Al9IjeRpCI/ykxDkzpt3J3Y5c7GK8vCh7hWPAFTzp5fD3mTc9L/I7RJlhIhXQ== X-Received: by 10.223.188.13 with SMTP id s13mr2111976wrg.39.1507911884709; Fri, 13 Oct 2017 09:24:44 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org Date: Fri, 13 Oct 2017 17:24:10 +0100 Message-Id: <20171013162438.32458-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171013162438.32458-1-alex.bennee@linaro.org> References: <20171013162438.32458-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:c0c::22e Subject: [Qemu-devel] [RFC PATCH 02/30] 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: peter.maydell@linaro.org, qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Reviewed-by: Richard Henderson --- target/arm/cpu.h | 1 + target/arm/cpu64.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 89d49cdcb2..3a0f27c782 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1340,6 +1340,7 @@ enum arm_features { ARM_FEATURE_VBAR, /* has cp15 VBAR */ ARM_FEATURE_M_SECURITY, /* M profile Security Extension */ ARM_FEATURE_JAZELLE, /* has (trivial) Jazelle implementation */ + ARM_FEATURE_V8_FP16, /* implements v8.2 half-precision float */ }; =20 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 =3D 0x80038003; /* 32 byte I and D cacheline size, VIPT icach= e */ cpu->dcz_blocksize =3D 7; /* 512 bytes */ } --=20 2.14.1