From patchwork Wed Oct 4 18:43: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: 114806 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp6259853edb; Wed, 4 Oct 2017 11:52:50 -0700 (PDT) X-Received: by 10.237.33.203 with SMTP id m11mr17403292qtc.123.1507143170632; Wed, 04 Oct 2017 11:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507143170; cv=none; d=google.com; s=arc-20160816; b=nW1BfXNKEjo9YWRoONkJodx/zvSpPSHYQeeA3V8Bh0cbciujLcgR1V6ytRNtv0zOUt Kl2MCNOfDTARwCxb6ao2QE5NGHm5bxaUGdnnam3q9bhDDwdBydl3QxW341rjKrT20H3Q +a7viGkuwRspBNyRkr3EQIhCnWj/iVozq276t+/0yVfAiK5FHvmvvfwC4SIShpDHCzxg TFVHi0c7ppqXWOALzs1RCUR01+kAziL9BxaqTtlQzESny0XZ8Bc/3VHfINZP+63X5sZ6 egYAwnRV0ot1ylHOMIV0jkcfY1/gHJ4HQaAGiLMzMOWt9OU3tP7cVEgo8c0pR5u3dmkw /mdw== 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=b+9rLgDBfShWST9hHmo3Upcv7Mo8cJQOAwEILtOo+vs=; b=diH14Qak5ZpaPbs/dLXHdPo/fTHN5/yp4dPi0RI9IROaYPO2pL/tv4ZJasez+1NhsV 68lED3cK2Vcu1ZrQb8lporK1kAfSWAiMFvl7SQ0H6WHc/E6JosjtenA5DgMIgek46Tw9 sT6e56sNGAQarREdTQMo26Cmy1J7UxJLVnmJwoDBaYcdu4fpiD8+LXl1NGaWVNE6FYZk TSxr7TPu10ht8EPWjYtkL45WaEfqOuF0q01CWrWSxlw6AA+wd/in2PpqDj+O78/hqLqT 3M/1tb6RNIvDPEw4IaIlH1zLwyLfRnRmXRrrgMq8kw7j5a/U3jH2UCbFLrF4mjrYNC/h ZcTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cRCX91Qx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 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. [208.118.235.17]) by mx.google.com with ESMTPS id o5si4276378qtj.80.2017.10.04.11.52.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 04 Oct 2017 11:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cRCX91Qx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 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]:36476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzomo-0007KF-50 for patch@linaro.org; Wed, 04 Oct 2017 14:52:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzody-0008Fk-Os for qemu-devel@nongnu.org; Wed, 04 Oct 2017 14:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzodx-0002l5-Pe for qemu-devel@nongnu.org; Wed, 04 Oct 2017 14:43:42 -0400 Received: from mail-qt0-x22c.google.com ([2607:f8b0:400d:c0d::22c]:48928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzodx-0002kO-MU for qemu-devel@nongnu.org; Wed, 04 Oct 2017 14:43:41 -0400 Received: by mail-qt0-x22c.google.com with SMTP id d13so20372347qta.5 for ; Wed, 04 Oct 2017 11:43:41 -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=b+9rLgDBfShWST9hHmo3Upcv7Mo8cJQOAwEILtOo+vs=; b=cRCX91QxSoWGhpmaJsEchKvBp/60bDNjDoX/fODaQCNRMwLuyAl6q8qpyE9M7HlmrA LlSFzfZfnz1HcaQ6yc+r87Je2dv0PLphkaYYuaHQYvdNfVvTdYXsA586m0TDrDO0QDN/ gdzQCrU3J5J/IPayhhSX3XkhQ4qqUjnzy4wBQ= 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=b+9rLgDBfShWST9hHmo3Upcv7Mo8cJQOAwEILtOo+vs=; b=Z5xAagHd1WyB9s0tefn/zXa2gcuPA4eQg6Bi+E48lrSGLJNTAYOYuCXrYGOrmb1up2 tEeY88GW6+lGyTtMZPHn2Kw2EI/72Q4Qu0A1NnWudMd5AhPlr/Mwl2no3gxSSnFwGcrK DY+Pk/mqoSSyiaFwKeEUdeqnVTW4Q8cu/sWIjKAbajy0VaPtZtXZu5jx7RQ1f0xlFZn2 xvVHHpx2x6EIMEuWb/eg3uHIaCYysViuFAosdvrqrxiErC0Pnd+QqxvaTNvnvWd1PmbR lmBPdjcAAwiPaK9MSazBaFpHZPUZzVCi363Sfx+iOoYOa7H26NEcweAWtJ1cZ+bCijr3 i3Pg== X-Gm-Message-State: AMCzsaU9qn94kLBu1GGtOzjYIpA4CuaLyFAOKs/MzcvoJEeRns9fwqUf MNtkl/vRHOIDwvudpZdkNRGr1FeiLyE= X-Google-Smtp-Source: AOwi7QBoNH+iXU/PRLXxbzG6ZNGv9KE/6gjT5YPs+YOp/WaUZPv3Z+8/B4WmdGiSwh9QHQMQaJpdUA== X-Received: by 10.37.31.135 with SMTP id f129mr4684275ybf.237.1507142620809; Wed, 04 Oct 2017 11:43:40 -0700 (PDT) Received: from bigtime.twiddle.net.com ([2606:a000:7a4a:b100::1b]) by smtp.gmail.com with ESMTPSA id o64sm3020464ywe.12.2017.10.04.11.43.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Oct 2017 11:43:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 4 Oct 2017 14:43:21 -0400 Message-Id: <20171004184325.24157-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171004184325.24157-1-richard.henderson@linaro.org> References: <20171004184325.24157-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22c Subject: [Qemu-devel] [PATCH v1 08/12] 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: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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.13.6 Reviewed-by: Alex Bennée diff --git a/target/arm/cpu.h b/target/arm/cpu.h index c5c9cef834..fdf72534d0 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1313,6 +1313,7 @@ enum arm_features { ARM_FEATURE_M_SECURITY, /* M profile Security Extension */ ARM_FEATURE_JAZELLE, /* has (trivial) Jazelle implementation */ ARM_FEATURE_V8_1_SIMD, /* has ARMv8.1-SIMD */ + 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 003d9420b7..788e46229b 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 276c996e9f..722d2806a7 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1604,6 +1604,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 b05c904ad2..96320ac0d6 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -227,6 +227,7 @@ static void aarch64_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->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache */ cpu->dcz_blocksize = 7; /* 512 bytes */ }