From patchwork Mon Dec 18 17:24:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 122274 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3131989qgn; Mon, 18 Dec 2017 09:50:55 -0800 (PST) X-Google-Smtp-Source: ACJfBoujc26K/RA9oBT1d5dT0x0ReO4k++OR8vKIqaPlYFgfIvJCioqfv5netHCH/6BLPUy8iFDw X-Received: by 10.129.124.135 with SMTP id x129mr418227ywc.509.1513619455567; Mon, 18 Dec 2017 09:50:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513619455; cv=none; d=google.com; s=arc-20160816; b=kSgqpLICstjA3GF3NLxMFI64uvYhpqxhf29vT0PYh/up3ZmCzhov8c3oxO9OlkctDg g9prtTy6Rt1B81Sk+k+SeB3jae1LQZXye1O1O22PiFJYjea8m4ls3UjIESZv/PFE4vc0 eIEOjH0uzqX9/lX6JULENfnHRbOS18/cBMCwipu/4l/VPvN145FnfcW8Zq9GMg/IjfqD imV/A25sozusy2uVpx3jn5M3K/s9Uxbc97hO6w5i+sIXhbXYwPRg16227fAdHXBDeQBd NPG+1HR4aEKzxS5LN46GzC6vdTooHuKXGaEa7r9fRnLnITC5fjoMpP5duz03g97kVnUS iTIA== 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=ihqxkNadFMqmm87H014iNHYSjzIdW6NTum55BD40BtQ=; b=Ani0EDiPM/u6CFF0gMDQtSF53br9DigPIxTeVxLlFJqB888sQG9KAgcTbLIjOZ2n/P jvCQDPJxM9gj7dSr5rnecb1wUcnCqQJECy+2KDVtp/QfA7aW3xPnLbIUf6FiThrI55dn d0B5bVqa/DUO5M0wDdvgknjBwSpaihVs4bEgBM/vI52NHdViUAo2EJ8uxV0n083X1U/+ 1xUy6EYsIadaB794v3pANi0xE3R+/PK/Wcol3XjSMS/tU5Tn64lAXv+FnUzxK9yeTREH 2re/Fg2/a3mdFxYUZax/BRnLtFxAv00ks/ThNRIAlic5FnUm4JNZELplf9OCvUlmuQ0I LqnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fD5ERZbo; 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 j66si2614299yba.447.2017.12.18.09.50.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Dec 2017 09:50:55 -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=fD5ERZbo; 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]:59265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQzZ1-0003xd-3R for patch@linaro.org; Mon, 18 Dec 2017 12:50:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQz9e-00061u-7x for qemu-devel@nongnu.org; Mon, 18 Dec 2017 12:24:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQz9b-0008Ep-3M for qemu-devel@nongnu.org; Mon, 18 Dec 2017 12:24:42 -0500 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:35756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQz9a-0008Dq-VB for qemu-devel@nongnu.org; Mon, 18 Dec 2017 12:24:39 -0500 Received: by mail-pl0-x243.google.com with SMTP id b96so5209742pli.2 for ; Mon, 18 Dec 2017 09:24:38 -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=ihqxkNadFMqmm87H014iNHYSjzIdW6NTum55BD40BtQ=; b=fD5ERZbo7rNdc3HjaBilZPCBA2w+YBGug4G7LUS4Oii+vzYCI2uUIzkMKSKXoH4ixR 8HLmDFy1aRcaEp8owvDJku7E0m+0AUJDVMFWczh8FyFmkOX1gKTMAun2JvMR9A7SMEyv 8yXf5HW7G3YRfIvODXK8Bru1gjZ1fs/vFQsfg= 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=ihqxkNadFMqmm87H014iNHYSjzIdW6NTum55BD40BtQ=; b=pw2+RXuo/At/7FuvJ9HdsOhWH/7UVqPHvjYSS+GxBA1Ru045oqbsJsUCYGttp1Z2oX 418fiW32cJa/CPdmu/fnMwbQ5uX63G9OgIM6wooX2n655uPSWDZSrfGz11nWO81rxTVy a2KgHF+XphK+dq7KqyQjwm2JA2D4DLXoZ9SREV+egi/7s5F95VjKoTtXiJ91/bFlt4Pe jaDUrKpwbwZwJpmwMrbQLNj3+b4Z9vKqXUTaKVHPCqgTKHuApUoimIqTDqgOyBX7Fb7W xz9Kwn/XYv0fgqNyW6c1+NJEeXOHZ+QpAwN2DC8RVxqY7Lh7z4vdsubju3gsMwnMh1Md E5dA== X-Gm-Message-State: AKGB3mJatUVE9U49F/o4Btabnmb2VibbLUr7fx2UjfRQULMQb0g1UBUt SjP4i3iCNLr/1drusEo0Z6l9YPcVwBU= X-Received: by 10.159.252.6 with SMTP id n6mr431673pls.370.1513617877761; Mon, 18 Dec 2017 09:24:37 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-7-63.tukw.qwest.net. [174.21.7.63]) by smtp.gmail.com with ESMTPSA id m10sm9260469pgs.4.2017.12.18.09.24.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Dec 2017 09:24:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 18 Dec 2017 09:24:21 -0800 Message-Id: <20171218172425.18200-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171218172425.18200-1-richard.henderson@linaro.org> References: <20171218172425.18200-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::243 Subject: [Qemu-devel] [PATCH v2 07/11] target/arm: Add ARM_FEATURE_V8_FCMA 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Enable it for the "any" CPU used by *-linux-user. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/cpu.h | 1 + linux-user/elfload.c | 1 + target/arm/cpu.c | 1 + target/arm/cpu64.c | 1 + 4 files changed, 4 insertions(+) -- 2.14.3 diff --git a/target/arm/cpu.h b/target/arm/cpu.h index e047756b80..7a705a09a1 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1353,6 +1353,7 @@ enum arm_features { ARM_FEATURE_JAZELLE, /* has (trivial) Jazelle implementation */ ARM_FEATURE_V8_1_SIMD, /* has ARMv8.1-SIMD */ ARM_FEATURE_V8_FP16, /* implements v8.2 half-precision float */ + ARM_FEATURE_V8_FCMA, /* has complex number part of v8.3 extensions. */ }; static inline int arm_feature(CPUARMState *env, int feature) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 95f550518e..e07184902f 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -541,6 +541,7 @@ static uint32_t get_elf_hwcap(void) GET_FEATURE(ARM_FEATURE_V8_SHA256, ARM_HWCAP_A64_SHA2); GET_FEATURE(ARM_FEATURE_CRC, ARM_HWCAP_A64_CRC32); GET_FEATURE(ARM_FEATURE_V8_1_SIMD, ARM_HWCAP_A64_ASIMDRDM); + GET_FEATURE(ARM_FEATURE_V8_FCMA, ARM_HWCAP_A64_FCMA); #undef GET_FEATURE return hwcaps; diff --git a/target/arm/cpu.c b/target/arm/cpu.c index afe84645af..6cd8ae1459 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1629,6 +1629,7 @@ static void arm_any_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_V8_PMULL); set_feature(&cpu->env, ARM_FEATURE_CRC); set_feature(&cpu->env, ARM_FEATURE_V8_1_SIMD); + set_feature(&cpu->env, ARM_FEATURE_V8_FCMA); cpu->midr = 0xffffffff; } #endif diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 67a01bf7ce..43b42f95fd 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -228,6 +228,7 @@ static void aarch64_any_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_CRC); set_feature(&cpu->env, ARM_FEATURE_V8_1_SIMD); set_feature(&cpu->env, ARM_FEATURE_V8_FP16); + set_feature(&cpu->env, ARM_FEATURE_V8_FCMA); cpu->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache */ cpu->dcz_blocksize = 7; /* 512 bytes */ }