From patchwork Wed Feb 3 02:15:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 375357 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp733185jah; Tue, 2 Feb 2021 18:22:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYzUuHqynqHruTWNGLCHD+cilFjOlHwqIMsPk4eouQ2PHq6BtTgYZ81tQ/q9noV4mrXuuI X-Received: by 2002:a25:3bd2:: with SMTP id i201mr1328695yba.246.1612318941779; Tue, 02 Feb 2021 18:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612318941; cv=none; d=google.com; s=arc-20160816; b=AS0XIrlMgW3lzBr2M2qgQXbN/RRl8DLJqk55IP2/ADbOLNd1uYqNwmYwUdWkl1incH bDDtcL7BNkkfTUNewwJjKPSpwI++oGIeI5TKZUX/qoXI8HLSESxdrHxLXhMN4KbmGMCS kC7h+gjb78/NaqOTUhWVb43t9oGRgYHdS/GKQas0N3GWlpEPAHaPm5PNy2N1AY75ujWO 9EKx2UkszYF5LHYKYoGNbNU+AkCPF+QCTbhEUb2FfoXYCnx58AZihqL9+9M2+LI1jZJG A0agPUIy/kDRiqUbRAy+KAYuj9KqOvjR4JgYxvhxheYse14IIb8dI5aDtfUZEmh9nbKH HugA== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=nSEK3p+qxylOawpMIAYivHlEQIteSEhF1LMizEZTG7s=; b=zsRBsxG5U5bAvsV61y1NI8axldb8ZR+LR95NCAoOcCQ5Boc72LuLQnA1cB3uPOKfPQ MtGhy8CiICMKEMVni5sRQvGgl8to+UympfH4+ie57MIcGMw4NhORMDyOYHa6lhTXjxnu mXbJjZdZsvPDpNyUn0VytprC3i1vZKsSrty9JPXbkPece+uW/QLzRKV85kJ8OILVMNdH Qj3ZZjn8MSbqqLwZPIhXJoJM7K3PoWZJgzr6z5ODdCuApdWr1DdQBMCHTXzF9bdoWDbl Z9bzadRDLDiMQsCXZlHoqtcJ4DNvRjFZhQ49KlTvDeHZny29UQQFgG/2j0gx+QBL4XGe qDLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sTREIQBP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s16si949473ybk.180.2021.02.02.18.22.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Feb 2021 18:22:21 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sTREIQBP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l77oD-0006bj-9n for patch@linaro.org; Tue, 02 Feb 2021 21:22:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l77iH-0007jV-2B for qemu-devel@nongnu.org; Tue, 02 Feb 2021 21:16:13 -0500 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:40440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l77iD-00011k-IM for qemu-devel@nongnu.org; Tue, 02 Feb 2021 21:16:12 -0500 Received: by mail-pf1-x431.google.com with SMTP id i63so15644957pfg.7 for ; Tue, 02 Feb 2021 18:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nSEK3p+qxylOawpMIAYivHlEQIteSEhF1LMizEZTG7s=; b=sTREIQBPV+e5HqTyNRKNllcVT4l4X7zmhOxjCg4U/HzYswx4M4OBW3OosnZyVzivB6 Fh22QEXRvcTXHWvUVJ7a0SLwr9TBwmBld9E9ycLd4Nn8TjQfe+t/tjPLP4BX6u6aTp32 aJBAWm4jJV0NyC62PDVhqnbbT/erLrtgplD8Eoq7uBAteSDekd3jG5KImgYbUJJvdz0o kGNLV0gKNSTdfwmkZyMz438v2Suj8g5U+gNy9hGBMeoN2ZI6udSpAhiDl/Mh0/X1EzKI DNZra4EGHYw6VYDMdQuC9fSxP754oe6whshYimr/YM/85/ddsXiuygvzcx8JGh0e9v30 FdhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nSEK3p+qxylOawpMIAYivHlEQIteSEhF1LMizEZTG7s=; b=r2ltruog7XBm3ZYMEIEuhYfJQAmVKFLzySCtkG5pRxSqIHh7O+iZ032CMvH7apDiHn cZremKRHPAAz/wdqgO37dRQ/BdqfLgRkNTiurLjWlCESAhHWi8fM7Z2jj4eR0zIG6/XS Yi3zOHhDzuCk5FyARdjOQvh+KP7I/XH2HCZg/TtuPDWRCPFObxBlfd3/hnkUjQo7IbHd lO8Me5RhkKS5zoI6GBixlmoeaLg3XC7kEjx94oLr94+5CtnjwhtSDS7ANWEk0ilIoEvH 8NgG56vy4UxIqqJzWgNdBSFJOx8ZOVPqwwaLMVAN3PMzWvq/4CTFn5BjG0kwVplKifVx wLLA== X-Gm-Message-State: AOAM531NhiV0vvYF1Nfi0oXdVx1WlCsCQ6/aWsZXYQx3q6G5caRf6cMn 6Y81sSuQFtWReMgEDvtGcYOrHMul2BDr7MjJ X-Received: by 2002:a62:3812:0:b029:1be:cbfd:ca78 with SMTP id f18-20020a6238120000b02901becbfdca78mr1005865pfa.28.1612318567262; Tue, 02 Feb 2021 18:16:07 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id x1sm270301pgj.37.2021.02.02.18.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 18:16:06 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 09/24] tcg/tci: Split out target constraints to tcg-target-con-str.h Date: Tue, 2 Feb 2021 16:15:35 -1000 Message-Id: <20210203021550.375058-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210203021550.375058-1-richard.henderson@linaro.org> References: <20210203021550.375058-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tci/tcg-target-con-str.h | 11 +++++++++++ tcg/tci/tcg-target.h | 2 ++ tcg/tci/tcg-target.c.inc | 14 -------------- 3 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 tcg/tci/tcg-target-con-str.h -- 2.25.1 diff --git a/tcg/tci/tcg-target-con-str.h b/tcg/tci/tcg-target-con-str.h new file mode 100644 index 0000000000..87c0f19e9c --- /dev/null +++ b/tcg/tci/tcg-target-con-str.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Define TCI target-specific operand constraints. + * Copyright (c) 2021 Linaro + */ + +/* + * Define constraint letters for register sets: + * REGS(letter, register_mask) + */ +REGS('r', MAKE_64BIT_MASK(0, TCG_TARGET_NB_REGS)) diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h index bb784e018e..ab832aecc3 100644 --- a/tcg/tci/tcg-target.h +++ b/tcg/tci/tcg-target.h @@ -207,4 +207,6 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_rx, /* no need to flush icache explicitly */ } +#define TCG_TARGET_CON_STR_H + #endif /* TCG_TARGET_H */ diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index b62e14d5ce..493bbf1e39 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -302,20 +302,6 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int type, return true; } -/* Parse target specific constraints. */ -static const char *target_parse_constraint(TCGArgConstraint *ct, - const char *ct_str, TCGType type) -{ - switch (*ct_str++) { - case 'r': - ct->regs = BIT(TCG_TARGET_NB_REGS) - 1; - break; - default: - return NULL; - } - return ct_str; -} - #if defined(CONFIG_DEBUG_TCG_INTERPRETER) /* Show current bytecode. Used by tcg interpreter. */ void tci_disas(uint8_t opc)