From patchwork Fri Oct 13 16:24:10 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: 115784 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp918111qgn; Fri, 13 Oct 2017 09:25:30 -0700 (PDT) X-Received: by 10.55.109.195 with SMTP id i186mr2824116qkc.147.1507911930370; Fri, 13 Oct 2017 09:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507911930; cv=none; d=google.com; s=arc-20160816; b=YjDlAd9QBgqxNnqcdkjyPB8O8ukukrgLs2HeyPX+JdgEcmMA1fx3lNHvkXqgOvmDG1 CksIroL2DhjPzXeljMa1yU1kEKUDZF2Eh3KPuNcXFN6n3hKv/bX3EwS19rd0onjAsS9n eGJMs8svDAoCZznQ2KvINDDbwxoFANyBpiMGFztzn7fxkb1Lt7mL8/kBEe3mXCy1JfIX dsykitXAsOHuJoh+gk6Tq+1BrRKoju3wEHgkrLlTtWxDaXaWqoKo6yiqWDUVnGLqKQZR lXgFOWQLQKlJZ+o9DrqUlPq00N2EeEE9/OvNOdagGzlliCv8NVKqqGmTTlA/hwCHi8uK ehPQ== 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=i94aSXWM8jvmZsWcCUdhzW0nGXo062r23fZ6DTOQKzM=; b=LZl1jrMQwgHFdaZ51n+CCIh47k+bD+rOVqeARdiSzDldtIb8DGXwmXO04nv6Wzju0W zhxJX+Nsl/j7hm8cHfABxVx27u/NaBqdVyuW2cApEcKOp4GmDyS8MSW1Tij5/CDC7zVz kcpEquGeVC7YdonZBL5i0wwvGs3f/mTGcP9UOWEXhudPhd1RWuNPWOzouv2aFBRwBzXq RL4GkUxhfeIlMR2nspwiw4TTtHja7FeMhukSzt+tjnGZ28iRH6+5f5DRE+26/VqYSOnI E9jXylnvtyhs7e3DzQICR6qGesqKGCKEsrzzYkS3i/ETeBQ+m7agcuU4IAtVUHkpZbmN UTgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SaZrodnc; 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 b19si1086190qtb.423.2017.10.13.09.25.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 13 Oct 2017 09:25:30 -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=SaZrodnc; 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]:51022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32m7-0002jG-Tv for patch@linaro.org; Fri, 13 Oct 2017 12:25:27 -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) 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) 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) From: =?utf-8?q?Alex_Benn=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_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org 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.14.1 Reviewed-by: Richard Henderson 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 */ }; 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 */ }