From nobody Thu Nov 14 07:06:07 2024 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=1611951552; cv=none; d=zohomail.com; s=zohoarc; b=C6SDvT8GN5X7wwugg3Jshph8/muzGxzNReClXXNuK8Jm9C7P/Dj+ALh/hRDlSV8zWVSEcbJc6ZL0AHFjtljWbAMuRFj7ytdV1ZJ5B6URDbfIDdDjPKMjpTYc4apfqoMs8qx6J+2XfgFltGfPqav6gOCns7TFmVKDa6D749lWtFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611951552; 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=J41l1jwpGFVqhI4klISdjSrKrsQudusEiIGBBy4zjxHDYMCiM06FGhDGnNaPR8aT6isxC8Uch2MWk4TQmaLuQ4I42DFSS/6do0mCkk5yIQAmFtXZzXafyKea7NkcuEKGlokj3P5FdcqxwfNZX9PXpjN6PLsBBKrj0SgK1NJ/CsQ= 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 1611951552391123.6496481256977; Fri, 29 Jan 2021 12:19:12 -0800 (PST) Received: from localhost ([::1]:57824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5aEZ-0006ma-68 for importer@patchew.org; Fri, 29 Jan 2021 15:19:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5a6T-0006GT-Q5 for qemu-devel@nongnu.org; Fri, 29 Jan 2021 15:10:49 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:41414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5a6R-00083P-Qq for qemu-devel@nongnu.org; Fri, 29 Jan 2021 15:10:49 -0500 Received: by mail-pf1-x42b.google.com with SMTP id q20so6921337pfu.8 for ; Fri, 29 Jan 2021 12:10:47 -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 d133sm9247265pfd.6.2021.01.29.12.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 12:10:45 -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=FxLQijXnggCEea9Glr6nnqx0WAzTL/2qyTBsAkXba3kBv99WXB/SE2r3pBOP4eXDnS hZGs4sxIfUN9bcroSMc/NYoRA9yV77BmAWkA56yMJ2UP660WmFAXuu6YD8+7/qLDqIDz QzuIAxFBAeOGx3Rkts+/izmPawnK4gM1echVmyX/fVml4ZFgD5zMCiD/hOxeds8CyycM QVoyQtGBo93tpnHMwHklJqeL+c0w0P4U4o0lbv9YJ3cQ3YSe0n9ccHLadCvF5z2vmIls TYYnvkw0nCNZrC28YJ0l9/SyCw8A1oeVC/aydtlvDY6hNI918AQtqISHyOAvlsF+lqYu TiHA== 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=Gz6zJpPOgsPEBqmQPDOTEu7x7/tT/1QoYbVlIl3Z9a0SQpYmJoVmT4dIp/dTqRQy2k u5GtUCpHMQFAPGHejj2g3StWMYF7kkfckvL2LRXTD5m8NYNW1Bk4BzzcwpRK+emsJdIa +YUlOurC5o95IshDX/B+DE35t/ZsT7nWTyjbD0RK9oRC1J8GOgMsHX2EBKJiiZZrNWk9 cqjHqLv17gCESapIkgi0WtrzYNzaNa9c1EnIIDz+QrVOD0/DWTHcrSJlPkYZURaNDKep WQm3M8RhKZm0YQWUNCjrFSGUfNZgfXxSWvxOgkNsfilyKO3F6kO60fALvPwLOp7cPIql ojkQ== X-Gm-Message-State: AOAM530v5+6Vn4OlrAUhzY25AB50ktbQkFcIsJXHaMMDX6MupVQ7I0ZD y+xwTv/QUHAGPuoih7mYdLbErRWnby6iaGos X-Google-Smtp-Source: ABdhPJwbURMxkrEwyGl635G4mDZAkhXev1040x1caTu/h1ptF1/GvMzwdCgLPzgbGSp+6BEcHLyeZw== X-Received: by 2002:a62:f207:0:b029:1c0:434b:cc14 with SMTP id m7-20020a62f2070000b02901c0434bcc14mr5984833pfh.11.1611951046482; Fri, 29 Jan 2021 12:10:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 09/24] tcg/tci: Split out target constraints to tcg-target-con-str.h Date: Fri, 29 Jan 2021 10:10:13 -1000 Message-Id: <20210129201028.787853-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210129201028.787853-1-richard.henderson@linaro.org> References: <20210129201028.787853-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::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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 , =?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