From nobody Wed May  7 20:54:43 2025
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17
 as permitted sender) client-ip=209.51.188.17;
 envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org;
 helo=lists.gnu.org;
Authentication-Results: mx.zohomail.com;
	dkim=pass;
	spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as
 permitted sender)
  smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org;
	dmarc=pass(p=none dis=none)  header.from=linaro.org
ARC-Seal: i=1; a=rsa-sha256; t=1579801278; cv=none;
	d=zohomail.com; s=zohoarc;
	b=CjFb/5BZfZzpKq19tzxXwkTpb3L2iRxwL/vmI45PCAqTCuF7xhoVbHeI/908+W1/9xAn+wPLqtQ0pqHtD8d8ZEFuyUtdEtJUNR+y2tOziya9fVWmFu/pNnMh+6pWttuq6ymDh+iqCmKXbm3xKAI9wLfgMy0MzY2880pDRxwpZHI=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc;
	t=1579801278;
 h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
	bh=qrKLsGzcwT4O0/FyrfhzQShN36qKk5yXw+x77PWIwL4=;
	b=OtzKf1S+DKc2wHfnPiVGa5cWX3lX9PpZ2XMTBvNMwDmGhJRuuIxdfgklc7UQmiakSf9pcR2uqRmdL9nXEEz/3CjeuaW3xPSZi5S/fcgXlECP2hdy0RNLM8+yldNxL3X4TMGJ1bFnYROYMXtzhwKs+WwQgUd3WOFwQzRnY4Hg51o=
ARC-Authentication-Results: i=1; mx.zohomail.com;
	dkim=pass;
	spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as
 permitted sender)
  smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org;
	dmarc=pass header.from=<peter.maydell@linaro.org> (p=none dis=none)
 header.from=<peter.maydell@linaro.org>
Return-Path: <qemu-devel-bounces+importer=patchew.org@nongnu.org>
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by
 mx.zohomail.com
	with SMTPS id 1579801278136843.4956113301874;
 Thu, 23 Jan 2020 09:41:18 -0800 (PST)
Received: from localhost ([::1]:33744 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <qemu-devel-bounces+importer=patchew.org@nongnu.org>)
	id 1iugTi-0001In-Oi
	for importer@patchew.org; Thu, 23 Jan 2020 12:41:14 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48301)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <peter.maydell@linaro.org>) id 1iueRV-00008A-5Y
 for qemu-devel@nongnu.org; Thu, 23 Jan 2020 10:30:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <peter.maydell@linaro.org>) id 1iueRT-0003bv-U8
 for qemu-devel@nongnu.org; Thu, 23 Jan 2020 10:30:48 -0500
Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33971)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <peter.maydell@linaro.org>)
 id 1iueRT-0003aW-N8
 for qemu-devel@nongnu.org; Thu, 23 Jan 2020 10:30:47 -0500
Received: by mail-wr1-x429.google.com with SMTP id t2so3585205wrr.1
 for <qemu-devel@nongnu.org>; Thu, 23 Jan 2020 07:30:47 -0800 (PST)
Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148])
 by smtp.gmail.com with ESMTPSA id s139sm2903592wme.35.2020.01.23.07.30.45
 for <qemu-devel@nongnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 23 Jan 2020 07:30:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;
 h=from:to:subject:date:message-id:in-reply-to:references:mime-version
 :content-transfer-encoding;
 bh=qrKLsGzcwT4O0/FyrfhzQShN36qKk5yXw+x77PWIwL4=;
 b=Dxuey9eqU8BNgN/rfOhMxwNOy+mhRShS/6av3JmBN7I0XtFWi8rmPENPxeW1heDf67
 dAUF2KAOs6Yy7Al92WyrudPdDNX116xnOUwGxLinRw+5LUCjNkdJfmGhMQ8pW1igrFxj
 eTgw98xdOmwgRy3C3GPNxasnv7B4W3AEnJkK45xYedpjgfJmvUX2XTL3MU5nA74/el/M
 51Flc6EiGJxK6/qFv7s6y+IhLgA4xe827TicpmGMy2DkC1bIF8lGcgcjsGkI3pIr7DQT
 cKOo9m5UkOZzDO2/34luOluLNELHwpeiqjSLC53LIo82tJk5yZxQj/T2CdoqZJFzuyX7
 myCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=qrKLsGzcwT4O0/FyrfhzQShN36qKk5yXw+x77PWIwL4=;
 b=PFvAPRjFS4xeETI/7Zo0ClyarU3b8xl43+BNOZnacjjHDjpJRWBZPRR4hssEWY+0Iv
 iG42sneD4VU+G5B3hiFP2ZjV6f6hr/ONj9xTf/DkkSMvpvb0ItMK7dqzp5/WeK/QrVhG
 kt+teqts9XQ3PdF++ZaP/qrEmFYgKtIsfflDpKkGnnfczt70uunLrJeZm8yXEpA4NVta
 J0OxtrLUttLhGy3iK+AxUL3WD+8J2wxFrgGq8YtE4RgO/BG+9PCxBnRmAN9UXo3E4LLS
 gdJa72IXZPt7KQgyEtHTDW6ZcNF4DMZ7z/BU32dEEsevrXmmBLgEQLWa+3D+JoBawP10
 aPgg==
X-Gm-Message-State: APjAAAU5/voGLwI69uqUy1yA8IUh1ccRq7iDAgC+xpEVISxm7ddBRoNS
 peP/OpqDgKsWl1HEASHxOZBhYoK2ocnWsg==
X-Google-Smtp-Source: 
 APXvYqzNz8I5w691LIQCjsdmO74oknmC2nn/EI/xXyWMgPWfQP2ha1i+1VZnS6qtHV+R0mXd3jE7FA==
X-Received: by 2002:adf:f3d1:: with SMTP id
 g17mr17349763wrp.378.1579793446506;
 Thu, 23 Jan 2020 07:30:46 -0800 (PST)
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 03/20] tests/tcg/aarch64: Fix compilation parameters for
 pauth-%
Date: Thu, 23 Jan 2020 15:30:24 +0000
Message-Id: <20200123153041.4248-4-peter.maydell@linaro.org>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20200123153041.4248-1-peter.maydell@linaro.org>
References: <20200123153041.4248-1-peter.maydell@linaro.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::429
X-BeenThere: qemu-devel@nongnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: <qemu-devel.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>,
 <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel>
List-Post: <mailto:qemu-devel@nongnu.org>
List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>,
 <mailto:qemu-devel-request@nongnu.org?subject=subscribe>
Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org
Sender: "Qemu-devel" <qemu-devel-bounces+importer=patchew.org@nongnu.org>
X-ZohoMail-DKIM: pass (identity @linaro.org)

From: Richard Henderson <richard.henderson@linaro.org>

We were incorrectly requiring ARMv8.4 support for the pauth
tests, but Pointer Authentication is an ARMv8.3 extension.
Further, hiding the required architecture within asm() is
not correct.

Correct the architecture version requested, and specify it
in the cflags of the (cross-) compiler rather than in the asm.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daud=C3=A9 <philmd@redhat.com>
Message-id: 20200116230809.19078-3-richard.henderson@linaro.org
[PMM: tweaked commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 tests/tcg/aarch64/Makefile.target | 1 +
 tests/tcg/aarch64/pauth-1.c       | 2 --
 tests/tcg/aarch64/pauth-2.c       | 2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile=
.target
index df3fe8032c3..374c8d6830f 100644
--- a/tests/tcg/aarch64/Makefile.target
+++ b/tests/tcg/aarch64/Makefile.target
@@ -20,6 +20,7 @@ run-fcvt: fcvt
 # Pauth Tests
 AARCH64_TESTS +=3D pauth-1 pauth-2
 run-pauth-%: QEMU_OPTS +=3D -cpu max
+pauth-%: CFLAGS +=3D -march=3Darmv8.3-a
=20
 # Semihosting smoke test for linux-user
 AARCH64_TESTS +=3D semihosting
diff --git a/tests/tcg/aarch64/pauth-1.c b/tests/tcg/aarch64/pauth-1.c
index a3c1443cd07..ea0984ea823 100644
--- a/tests/tcg/aarch64/pauth-1.c
+++ b/tests/tcg/aarch64/pauth-1.c
@@ -2,8 +2,6 @@
 #include <sys/prctl.h>
 #include <stdio.h>
=20
-asm(".arch armv8.4-a");
-
 #ifndef PR_PAC_RESET_KEYS
 #define PR_PAC_RESET_KEYS  54
 #define PR_PAC_APDAKEY     (1 << 2)
diff --git a/tests/tcg/aarch64/pauth-2.c b/tests/tcg/aarch64/pauth-2.c
index 2fe030ba3da..9bba0beb639 100644
--- a/tests/tcg/aarch64/pauth-2.c
+++ b/tests/tcg/aarch64/pauth-2.c
@@ -1,8 +1,6 @@
 #include <stdint.h>
 #include <assert.h>
=20
-asm(".arch armv8.4-a");
-
 void do_test(uint64_t value)
 {
     uint64_t salt1, salt2;
--=20
2.20.1