From patchwork Mon Jul 16 17:26:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 142079 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2677731ljj; Mon, 16 Jul 2018 10:29:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRKyZT04lSkznpqL36wjn0KLNCkZx6bgizUCIBXB8UnI8ABgFuMtl28TVlthgIsPGO44BM X-Received: by 2002:a24:874a:: with SMTP id f71-v6mr14271305ite.135.1531762183155; Mon, 16 Jul 2018 10:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531762183; cv=none; d=google.com; s=arc-20160816; b=dJO40cMvlrKQxefb5CEUc+ZHsmfxoynBQGG8ig0cCXeIZwf4LtmLfopfjNW0DH7zld vpJV3XFCIeW+M/sY7YzRx1+QGbgqO6N0rkrKhhQpO4oT2GBWZGxx83al6fErsrVFsLqJ kASzUs9WodORMv3nAkXmLs3BbHY2KbN++jLAgWgy7Okhdd4kvzaIVBQfTxUYpQHkU0sQ H1wH/h+qgTMMnwCJR7Dz8+lQ3jN6VxVlATvHFIT/zVQ6PUMndAYKJbUaUHG0p0s788pH pTSPnYC+lkL6Z6aC6i5SWk927K6c0Rd6o7uMkOhDiS+vXGCEeMR5hXCzVfYKMqRTTy2P xQUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=FVrZ7ysUP7Z1a5RtwoYw4Ld5XdzJdODcZPI3XmgeJL0=; b=VoEdUdmEc+KBxjTqvPDxs8eE/zbNUZhZhVcdL3vPq6wcksoSIo4iNMGwYqiAQKVbeB rmAcU41tbvhG3Qm7uMa9fnBR1NCoZnZ/rpQSVd/KJx2iR/zRLdHOvrdDfOTW4zee0nL6 uSp+252yVDQl1TredO2Bg0H7BwFcFcZ9CkQoNO++iA60aaxzbVok8bkcq+QyPdU8S5a6 okV3+YeLuyLtWW0FCNapKb5j/KtOkINO23KtYucBHNsbAj1769IrhBqDva2JnLiMs7xw aysI7ookvvIfd0/VIp1MlQMjT1opuY6ccKjQbuXV7RtjZGhz/fPPpsB/9zfU0L10RyMo /vVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id t64-v6si275221iod.271.2018.07.16.10.29.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 10:29:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7HO-0006Ql-L6; Mon, 16 Jul 2018 17:27:22 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7HN-0006QW-72 for xen-devel@lists.xenproject.org; Mon, 16 Jul 2018 17:27:21 +0000 X-Inumbo-ID: 83efdbc7-891d-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 83efdbc7-891d-11e8-a6a9-d7ebe60f679a; Mon, 16 Jul 2018 17:27:29 +0000 (UTC) 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 01ABC15AD; Mon, 16 Jul 2018 10:27:20 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 178233F5B1; Mon, 16 Jul 2018 10:27:18 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 16 Jul 2018 18:26:58 +0100 Message-Id: <20180716172712.20294-2-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180716172712.20294-1-julien.grall@arm.com> References: <20180716172712.20294-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 01/15] xen/arm: cpregs: Allow HSR_CPREG* to receive more than 1 parameter X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , sstabellini@kernel.org, Julien Grall MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" At the moment, HSR_CPREG is expected to receive only the co-processor register name in parameter. Because the name is actually a define, this may have been expanded by a previous macro. Rather than imposing the use of _HSR_CPREG* in such cases, allow HSR_CPREG to receive more than 1 parameter. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/include/asm-arm/cpregs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-arm/cpregs.h b/xen/include/asm-arm/cpregs.h index 8db65d5e2a..4c74e8161b 100644 --- a/xen/include/asm-arm/cpregs.h +++ b/xen/include/asm-arm/cpregs.h @@ -47,8 +47,8 @@ ((__HSR_CPREG_##op1) << HSR_CP64_OP1_SHIFT) /* Encode a register as per HSR ISS pattern */ -#define HSR_CPREG32(X) _HSR_CPREG32(X) -#define HSR_CPREG64(X) _HSR_CPREG64(X) +#define HSR_CPREG32(X...) _HSR_CPREG32(X) +#define HSR_CPREG64(X...) _HSR_CPREG64(X) /* * Order registers by Coprocessor-> CRn-> Opcode 1-> CRm-> Opcode 2