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: 870991 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="g6TpQYVc"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zclpY2Xxyz9s75 for ; Fri, 9 Feb 2018 04:40:36 +1100 (AEDT) Received: from localhost ([::1]:56897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejqBV-000295-Pu for incoming@patchwork.ozlabs.org; Thu, 08 Feb 2018 12:40:33 -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-Google-Smtp-Source: AH8x226wST3uxO8En0Apl2N9XYDYPb+UfdTrGm+NXU1Xc1AaRu6WkhOHC1wPV+jvOHNeIqjYo5Ulsg== 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+incoming=patchwork.ozlabs.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(+) 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 */ }