From patchwork Tue Feb 27 14:38:23 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: 129803 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1471876lja; Tue, 27 Feb 2018 06:44:54 -0800 (PST) X-Google-Smtp-Source: AH8x224HC5TIT7iVZk9X0SMZFzuX/73vQrhHac5hhdjzxcJcevvopoU8y5cBgwqfdhyI8TLeaXh6 X-Received: by 10.129.74.139 with SMTP id x133mr9509521ywa.400.1519742693913; Tue, 27 Feb 2018 06:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519742693; cv=none; d=google.com; s=arc-20160816; b=ankgH8B2LPCk5IbT0Yq0X0H3I+ZOeCU2Q8shZxLxnZyDOvWsJLJMjIahhqgIT1S0ii OzQG0ije3zfC2oC3pFVkwlpGcluCNYni49odRip6a/Jic2bw9APv+VyGUxvTgc11/USL MJzaglARFTfU5hIhqrgCgKdiivFdCcjYreY3LEMh0GjTNJS45sgIc77aqwwYU46/vd7a bo9hVDhW8sgE7Ea3A+KSOqeEUvT+55K1LimlGIrFyVL0tCNy7Csw7aQb7FbMqFIgfQA0 Cb3hW/e6Dbj1CAxNWDKXw4RUOlNfZX5b9r9aMTrAzDPLPLlFcG2ZRXCG00xi6xG8EJjS R8Rw== 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=5EXyTx7MtxQK2QtkQBD3MH1PJ+dwkjzleS7LmpbyAHo=; b=iBG03KbFkPUbZuVbtjEYR9pK+Wm/7jn2uCT79UmM39kuhSgYvyoGU8CTcMFPZRxs1P OvZG2Cv9eJqKysMhp6Y+9R238wdIDR2jSLPej4e/th0hXXSXfEc6DZgjP1aEK75lIDiN zozA704TtPA+E+Dm1k1cpEv67RzPaOgysimzOarjJI+KLTG3xoR3zpjUeTR7+2mOcKSy I8iIGTecSGUJgG2brNr5Q2QD323HENGPZd73F579Ls3597ipA6lXLSQN6y5kS4HT5aXw qilfKNC/sZWSFf8M8QiC4MrLaN331b/k/nVOIuXf6w2dewb9GPO3+ZMP31IfB9OX7xT+ S6Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UjQ/Rook; 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 l25si1938209ywk.294.2018.02.27.06.44.53 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 27 Feb 2018 06:44:53 -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=UjQ/Rook; 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]:37688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgUv-0007xK-92 for patch@linaro.org; Tue, 27 Feb 2018 09:44:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgPF-0003ZH-L2 for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:39:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqgPB-0007uK-SU for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:39:01 -0500 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:39900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqgPB-0007tq-LE for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:38:57 -0500 Received: by mail-wr0-x242.google.com with SMTP id w77so25076417wrc.6 for ; Tue, 27 Feb 2018 06:38:57 -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=5EXyTx7MtxQK2QtkQBD3MH1PJ+dwkjzleS7LmpbyAHo=; b=UjQ/Rook63aJeeHVrF31K1NG4osaIGKRah7NX4YBlthhy/sRTKB0YGw4kpm6tVBIYt rwt1cFd/K6TfjMhlxQ4sJWQj9GMc5CYyT4mno09IgoqJKsGuM+31jhReiE0v4Z/OCzCs nIFpnhQ0zHic9Y87vn7KmoRaMX9wHxK36rRWc= 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=5EXyTx7MtxQK2QtkQBD3MH1PJ+dwkjzleS7LmpbyAHo=; b=hG4VG02aPqeZHkqgOPe+yHfL1N6thu2FhhYoeigTprJ72auEcrEkEJTbkFeWrkqxEc efR4koSjkFL3rod0WxiDL2ZYO/nrSaQ4TK4Cjkel6ESiQ+r4rdA+xq5WO2TX5OuKFvta M/abj3ca/nF0py5kFlbPd1ct2S3pc+szvai4Qo+3X5cr2Bv8mCma5dCClPvMZhSdETy9 Yn2Hqlt48EVupLyrontfBQ1yaQX2DtSXyzxykb8BRzNxL6pOkrdjUtnmzIzphmJchlf1 rRDT3OSLqYB/OkUsCS37y94rBfMYEfu48cC01tOvEaPrmiNWUowIVzpDZS5l1jjNoKSV NYCg== X-Gm-Message-State: APf1xPBMdgGQBZH2KtJmzES4A8+hc5WZJ6dREICaTYzv09vyN7Xdte9a sxy1mHe4tZIkYp9ejQ6Ax5J+rg== X-Received: by 10.223.190.134 with SMTP id i6mr12838204wrh.157.1519742336550; Tue, 27 Feb 2018 06:38:56 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t135sm5435699wmt.44.2018.02.27.06.38.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 06:38:54 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 05E243E030F; Tue, 27 Feb 2018 14:38:53 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-arm@nongnu.org Date: Tue, 27 Feb 2018 14:38:23 +0000 Message-Id: <20180227143852.11175-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180227143852.11175-1-alex.bennee@linaro.org> References: <20180227143852.11175-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:c0c::242 Subject: [Qemu-devel] [PATCH v4 02/31] 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: =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, Peter Maydell 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 8c839faa8f..267a9d7e2f 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1408,6 +1408,7 @@ enum arm_features { ARM_FEATURE_V8_SHA3, /* implements SHA3 part of v8 Crypto Extensions */ ARM_FEATURE_V8_SM3, /* implements SM3 part of v8 Crypto Extensions */ ARM_FEATURE_V8_SM4, /* implements SM4 part of v8 Crypto Extensions */ + 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 1c330adc28..9743bdc8c3 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -230,6 +230,7 @@ static void aarch64_any_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_V8_SM4); 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 */ }