From nobody Wed Apr 9 11:38:02 2025 Delivered-To: importer@patchew.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=1612319023; cv=none; d=zohomail.com; s=zohoarc; b=FZFohpRBkIRjivPfzyn+Boiee9Mv0U6/sT3tMih+q8BLmw10iRR19eY1jwGRODqUsFe47vHkc1UUgLYIiHT9JxOtuRk//V9wKvwSHuh1EJ7bhn6yZNizS1YaUNcr/OIQU98mXLv2xZ6vxdVS23e2eNL8+IHIvuM0W9TD3MM5GUY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612319023; h=Content-Type:Content-Transfer-Encoding:Cc: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=nSEK3p+qxylOawpMIAYivHlEQIteSEhF1LMizEZTG7s=; b=U/LCELDMZKORSVRKx4TXKyuExwBVxE8px/BvcE/zdPnAYdddVvu/w4VG0y0HXGs0+oTVppoVCKJ4hEsnM5DXytoanNxGTj0JnQ0S9nU8R5mCVmO9M55e+QMKTxXZPRGFWKuniNODTLzUzGNr7MZDUzD9ey+4TE3ViFJROhW0pTE= 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= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161231902330918.81060874316006; Tue, 2 Feb 2021 18:23:43 -0800 (PST) Received: from localhost ([::1]:45216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l77pW-0008E2-6H for importer@patchew.org; Tue, 02 Feb 2021 21:23:42 -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) 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) 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-Google-Smtp-Source: ABdhPJwDgTy5zF0suPAierohQZwjzyZMP9pgeLSHbrHbxLlQMGaPjRSYWiNkr23gEBII0AAZHjeHCA== 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) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; 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=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 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 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 t= c_ptr, uintptr_t jmp_rx, /* no need to flush icache explicitly */ } =20 +#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 t= ype, return true; } =20 -/* Parse target specific constraints. */ -static const char *target_parse_constraint(TCGArgConstraint *ct, - const char *ct_str, TCGType typ= e) -{ - switch (*ct_str++) { - case 'r': - ct->regs =3D 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) --=20 2.25.1