From patchwork Fri Jul 27 09:37:48 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: 143026 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp600349ljj; Fri, 27 Jul 2018 02:40:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeoqmqF2duyImbt3Z6gMQUru23mW2EnfpCRJQ+CaNZbTz/qfhQ2Nio/kwM1KcY/fPMSiy6Z X-Received: by 2002:a63:f414:: with SMTP id g20-v6mr5344929pgi.407.1532684456350; Fri, 27 Jul 2018 02:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532684456; cv=none; d=google.com; s=arc-20160816; b=vELAN8nAAA7+AhyPm45gdcCJqzYK1jgsDFH1FcdJ6x20Hd5o1PN6MzPx+msJxSFspE /Uesqxfpb/XMa4D22wOjPfWO8BWwPrUmJB+kFLTlfwLSb0RyhyLlD6qBgWYtG47HZGVR OyYYfjQF3377lpkfltX1WYmpkWAOJDucMZHU7moGXOOI+Zqi9nFOM7n5virNYdZRwazG AmRzGiab3VizsX2nqEJWjSFp/Gas1Ds9NGUbDuFdsvshb6MKAo2Lk3Pp1cKBvM35iL4L sBcNnB3vAnMtb8pdU3M33C08IvLqiwv7YEf5ZjJlTFbOug1O/pPKpSGCoWHc4k9Za/UT gEGg== 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=32gijPOa+OnV1leuq4zAfyJyZuuOLHLQQdHfOv32sEk=; b=wGIUcKqSAzACVRjJZblklfG52K5ju5EDqfR9OS3XJ4JSubLp2HgtTeOSJ60829y+4o tenmZooE6cd4P0SgbzglULTkR6B2+LQ42CRzTBK1in7gY/89C2JLBbiW38xtqokRpiRs X8pYMMbxqTHoiLRc+hFmFtVkA8F7uNeJr8pmkNATO987/OKOy+8BcBnBL1Kmk7pWEbv0 2ibUWEsFldma4fIvOXiXEkY7M5fK/VfMPViYfSWEvCSLO0vzddfLSrcQN02I+LvWn/w2 asDYU28OhDm2XyhXP2yJXC9gn3BDylUqO+A0vvbvQQf0460M1yvoUokce8XbNcA6gOCB 2VkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=wLGuPnlG; spf=pass (google.com: domain of gcc-patches-return-482512-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482512-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 h5-v6si3622567pfd.112.2018.07.27.02.40.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jul 2018 02:40:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-482512-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=wLGuPnlG; spf=pass (google.com: domain of gcc-patches-return-482512-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482512-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=WDHL0d4IqscPGBVu ymhC26Mfl5YLY+L1/6IOuKDeLXqiZzBh3O+ij0TzqWQXjuqk4uXR3V2qQaCLXiL2 Rfit/0TrJ/3PjOjBVk+E/j0+d21wFTU9dSKCe2R58VEaFF05ZUnSmLVndQpFrOkE Hd8MhAlcuy4FLk4YhZQzKgzXEUk= 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=apGf4Ex1tFSyRL5GEEN8CV EMEt4=; b=wLGuPnlG+VOErcSLFKzJNGIIkFeZdLbDaUTV24Brx7hCFBHnAsPyL4 RRvbtkp1/EdiiQcJTC3+Yit7aNzx53ll4FkyeoR6YSnRvPsrx180AgqCWBp9gyo6 fETV4XKX3FhwrtkVJyCzjjYkIr1GIXDMnZudinbV6w3E3gTRby9Jk= Received: (qmail 48364 invoked by alias); 27 Jul 2018 09:38:41 -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 48183 invoked by uid 89); 27 Jul 2018 09:38:40 -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_FAIL autolearn=ham version=3.3.2 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Jul 2018 09:38:39 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fizCf-0006CN-S8 for gcc-patches@gcc.gnu.org; Fri, 27 Jul 2018 05:38:34 -0400 Received: from foss.arm.com ([217.140.101.70]:47226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fizCf-00069d-Jd for gcc-patches@gcc.gnu.org; Fri, 27 Jul 2018 05:38:29 -0400 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 C05E51688; Fri, 27 Jul 2018 02:38:26 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.207.74]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 28BD63F575; Fri, 27 Jul 2018 02:38:26 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [PATCH 04/11] AArch64 - Add new option -mtrack-speculation Date: Fri, 27 Jul 2018 10:37:48 +0100 Message-Id: <1532684275-13041-5-git-send-email-Richard.Earnshaw@arm.com> In-Reply-To: <1532684275-13041-1-git-send-email-Richard.Earnshaw@arm.com> References: <1531154299-28349-1-git-send-email-Richard.Earnshaw@arm.com> <1532684275-13041-1-git-send-email-Richard.Earnshaw@arm.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.140.101.70 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.