From patchwork Mon Oct 3 21:24:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 1664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1130135wrs; Mon, 3 Oct 2022 14:24:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xJNneYH9Fo1YqUUgwB5rFMtM9BTgMqvFonzTJFS1RjPzjkzVZyPwXJQhdh4ryAPzUExC6 X-Received: by 2002:a17:907:969e:b0:782:6b92:6b1f with SMTP id hd30-20020a170907969e00b007826b926b1fmr16089412ejc.140.1664832278558; Mon, 03 Oct 2022 14:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664832278; cv=none; d=google.com; s=arc-20160816; b=W7tsc7qhxs8/Ll68f6SWIfM+5M6I2W6vuvCs6KIVZdToy41a+b4cv5oi2V9ujBg6Mk BOW42kjCenU0yDqFDLESdPxZHImbLqq2/ouQzZWm/1nbgeN78aG0fyAeXoO7Rq+2SEK+ 5F6P/0MRFOVCAdv2MPYjIi2dt0dnRzo9x0Y+eG9vioYhU6ZEM1+AbP42GLnmEr2atvhw 1vx4v2drD94ga4g0sekhV7IiK1qizaAZ/QXkbBWbvsrhe7J7Dgad7GFu9NtGCLDUTSnW n8Qh2YXttZm0jPa4WiGD4xLqPZ+tOquTWenXnyzPxnegayCSGe2PUXY2y4hn/PLIs1/T qNdg== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=VfbrBXxXocDk4MkTGOOEA/eKwblfrf2JvVfDcXBE5MY=; b=tI9tWzb1X7/mv3Wchsd7Ac0AqLGD2igKRF3P+Bs5R0YaB9zCn03cCF8Dz8f/WCKQJr WDA/e3f6c5qBKRjbtNdnhLDiXJwKdN49/NPzrBg8UjcAsPVnp90xVo95E1Us8WEjxGZY IqwLTyFetN+2Jjvkfjk3+cuTlHxKBazfKCw33tr/M2kYwkX0GXkHMianVqZyfAiLY4O6 ZVWCVTNdHcr2na3/WvQCrj7l92bPkvLGvA470r7ELhtH8Dc9iwsI6TWGBY/tmjGglAex TQbNOV5F1/9JNvr9oaUj+srYQpDRCuLr2yRGR563Ep0ebfNm8RATiwzq5zsYxE2aSLc3 Z4hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@vrull.eu header.s=google header.b="O/UXZr71"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dr14-20020a170907720e00b0077e156d8e07si8216418ejc.828.2022.10.03.14.24.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 14:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@vrull.eu header.s=google header.b="O/UXZr71"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 981623856DC2 for ; Mon, 3 Oct 2022 21:24:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 73C9A3858D1E for ; Mon, 3 Oct 2022 21:24:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 73C9A3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-wm1-x336.google.com with SMTP id n40-20020a05600c3ba800b003b49aefc35fso6501070wms.5 for ; Mon, 03 Oct 2022 14:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=VfbrBXxXocDk4MkTGOOEA/eKwblfrf2JvVfDcXBE5MY=; b=O/UXZr71BDTQbp4NGevs00bsUJ4iCX6YDNQtwmYzkSS7oWW77MTGNn4uY5T1LC0nLZ jIJeJDmSTNJFy13YiSYlo+/SQIbkZZelsFsMpS/hHf1d9YGGWRbOhIROZKIybVGhVSI0 QlybsmL0BBYDh8KHcIYF16JlywhtAsfjweEoQ9sqXpP3EA3ZoBrtCQW9U7EEsdutG7JR qsamm9pdBtV7AckOW6+W808KJUrOC9JOxI1tJhtH3oVurpsCLTPqM8O95qYsD2KFbU8P 2XHsOU+0eqPl0KKxPf9/aRwDYTmvfiAVedxRDBpUsv65iK0RDCEzjizonFXMtuYlY2o8 RCLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=VfbrBXxXocDk4MkTGOOEA/eKwblfrf2JvVfDcXBE5MY=; b=cO16siutDsHt+OLM3hv7a+9PqHkdEcgp1E3806DcEAS1JdVE6n/YSp3JevH6a9hnhe VzP+iWiGbr2S3ryWUE3UYhqq599PglB0D4gdUwSGvXOKhIXElpr98fTrZnAld3EMRGEU hYEjSA1s4tHt96DRw5vncdyF/gbFF70Ww38XQ7EnIxqjOknjBiLuCFeNHWNrhF2Axs8N XDuhYluTy7HA2UCNlUqTcWhJ778/MZbCk8CmH2XXsC7sW1LXwmp1jkYlkJFD6fOAzb82 JVi+Q1yWgwSgk0avliTtGRf6tbvgXnMd71/+soqydVfx7Odf2ETwkVUUHGYjjThSgr+l PhVQ== X-Gm-Message-State: ACrzQf1sFXipQNMf576YQttIvVklsleUB1NmEbMzoWtd+8ClfiHY/Hn/ Uu9fytfLNcHKi5F6mKyvF6J7eePk2JUXCQ== X-Received: by 2002:a05:600c:3d8f:b0:3b4:aab6:4a97 with SMTP id bi15-20020a05600c3d8f00b003b4aab64a97mr8320770wmb.82.1664832245992; Mon, 03 Oct 2022 14:24:05 -0700 (PDT) Received: from ubuntu-focal.. ([2a01:4f9:3a:1e26::2]) by smtp.gmail.com with ESMTPSA id l18-20020a05600c1d1200b003a601a1c2f7sm18322834wms.19.2022.10.03.14.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 14:24:05 -0700 (PDT) From: Philipp Tomsich To: gcc-patches@gcc.gnu.org Subject: [PATCH] aarch64: update Ampere-1 core definition Date: Mon, 3 Oct 2022 23:24:02 +0200 Message-Id: <20221003212402.3337669-1-philipp.tomsich@vrull.eu> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Sandiford , Philipp Tomsich Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745703171693948611?= X-GMAIL-MSGID: =?utf-8?q?1745703171693948611?= This brings the extensions detected by -mcpu=native on Ampere-1 systems in sync with the defaults generated for -mcpu=ampere1. Note that some kernel versions may misreport the presence of PAUTH and PREDRES (i.e., -mcpu=native will add 'nopauth' and 'nopredres'). gcc/ChangeLog: * config/aarch64/aarch64-cores.def (AARCH64_CORE): Update Ampere-1 core entry. Signed-off-by: Philipp Tomsich --- Ok for backport? gcc/config/aarch64/aarch64-cores.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def index 60299160bb6..9090f80b4b7 100644 --- a/gcc/config/aarch64/aarch64-cores.def +++ b/gcc/config/aarch64/aarch64-cores.def @@ -69,7 +69,7 @@ AARCH64_CORE("thunderxt81", thunderxt81, thunderx, V8A, (CRC, CRYPTO), thu AARCH64_CORE("thunderxt83", thunderxt83, thunderx, V8A, (CRC, CRYPTO), thunderx, 0x43, 0x0a3, -1) /* Ampere Computing ('\xC0') cores. */ -AARCH64_CORE("ampere1", ampere1, cortexa57, V8_6A, (), ampere1, 0xC0, 0xac3, -1) +AARCH64_CORE("ampere1", ampere1, cortexa57, V8_6A, (F16, RCPC, RNG, AES, SHA3), ampere1, 0xC0, 0xac3, -1) /* Do not swap around "emag" and "xgene1", this order is required to handle variant correctly. */ AARCH64_CORE("emag", emag, xgene1, V8A, (CRC, CRYPTO), emag, 0x50, 0x000, 3)