From patchwork Mon Jul 9 16:38:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 141469 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2871967ljj; Mon, 9 Jul 2018 09:40:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdUd3rw2irUk9NvhMffZl8weAqr3JNPEJV/h2L9WXslzfOvcS3oby5SiQSlCzh48TtLiRCG X-Received: by 2002:a17:902:b596:: with SMTP id a22-v6mr20902879pls.154.1531154405824; Mon, 09 Jul 2018 09:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531154405; cv=none; d=google.com; s=arc-20160816; b=u1e7T4/8jgLQ0rfTKxJt9LopcGiuIaxlLWMpHl+wXBsQnavsQea5KGl7ZIZJ2mXKYz PGAojZuwOU2rfbpxsNIe7VeqC1GnLEvLZDHYoXTVfnO5JnaK/OEP7i60Il7krFMj+oBN LkAZSpe2or+1pjfId7bu6xdMsf1kmxZHrFBQ4YRfNXYwL8OBE8TrwvCyuxfD57uFkkw1 0RDDKDyP+/2F3h+6w9QbC12PbWb6z6tZZ93fpuNa0RZn5HbXQSMHOXL6U2iWFZozFaoH AKHC3A4XpbATsyug8daWStioM/e+2hO3Q3VH1rqAN1A8tewFSfZUq+qbKewoMoQIr73A 5Nig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=+/1U6HWux2mB5WLXVKXFRQlld9T5+xhbmFfc3shCFtY=; b=rvP11LCQCncE7oRfE8ZWEpRJULDKUFz5cr/UGgZRfmmUAm5VXhu4Qp6GtY/hm9tPhK bgVknBIXE4aIlMKq52v2JRvkWXHwYqp2OMVquncGVccPuw/PMjzqtKhqe3dW2MQD975J 2ZDngPhc4sggRK+yocDPNx9ldeTyKyZiFFf7BU7p9pZDVK50hmZsU+HrPnDiZ9Vye6UH JLhg/I++lEhXtoo1z1ZYbA0ZIgainZk8an+I73Ndds5TXTffse09L0xfyBAAbPY3xKXx JPX2uvR/cE0uAJbzJSk6tDXPoZPv4wPCbK1c1QUW+ywcMk025EfanbWcXFOceenoZZH8 4n+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=dTxS6I9o; spf=pass (google.com: domain of gcc-patches-return-481229-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-481229-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id n63-v6si14426437pgn.639.2018.07.09.09.40.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 09:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-481229-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=dTxS6I9o; spf=pass (google.com: domain of gcc-patches-return-481229-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-481229-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=AAr6RAVpdy8VckvR fFL/kBfjV4WjJaHIE7uSRppxkaLvx2NNDzrT0g/SanonoITVZUFMXBJk2O9ZqzEI 1OqNErEnQZxPykV/Q4ZKKPY07OjXYOEwL+Y7mN4DH07mhioVbj1Vhb24mBqxWfHD WPRzsPI6SKWkEl9Zc4zcMwtxA5Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=+YEQ2tHPw+ZsahyKU1Z2uN w2zvc=; b=dTxS6I9o7M2K3KFyokEp4gwF8DE9e5icAbZ5ShwD398wNAdafE2IuE UjM73nYbbE3hgaAk+apDOV6EeyHV3Am1rsPTgOQvje2f6ergE4aa19BO0CDjHZkA VkR5Wb//3f4xukw9nFZwcxB621nTnwdP3HLbQOXbj/qi1U/Ia4sHI= Received: (qmail 90343 invoked by alias); 9 Jul 2018 16:39:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 90181 invoked by uid 89); 9 Jul 2018 16:39:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Jul 2018 16:39:15 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9814B7A9; Mon, 9 Jul 2018 09:39:14 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.206.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D162D3F589; Mon, 9 Jul 2018 09:39:13 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw , richard.earnshaw@arm.com Subject: [PATCH 4/7] AArch64 - Add new option -mtrack-speculation Date: Mon, 9 Jul 2018 17:38:16 +0100 Message-Id: <1531154299-28349-5-git-send-email-Richard.Earnshaw@arm.com> In-Reply-To: <1531154299-28349-1-git-send-email-Richard.Earnshaw@arm.com> References: <1531154299-28349-1-git-send-email-Richard.Earnshaw@arm.com> MIME-Version: 1.0 This patch doesn't do anything useful, it simply adds a new command-line option -mtrack-speculation to AArch64. Subsequent patches build on this. * config/aarch64/aarch64.opt (mtrack-speculation): New target option. --- gcc/config/aarch64/aarch64.opt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt index 1426b45..bc9b22a 100644 --- a/gcc/config/aarch64/aarch64.opt +++ b/gcc/config/aarch64/aarch64.opt @@ -214,3 +214,7 @@ Target RejectNegative Joined Enum(sve_vector_bits) Var(aarch64_sve_vector_bits) mverbose-cost-dump Common Undocumented Var(flag_aarch64_verbose_cost) Enables verbose cost model dumping in the debug dump files. + +mtrack-speculation +Target Var(aarch64_track_speculation) +Generate code to track when the CPU might be speculating incorrectly.