From patchwork Wed Dec 23 06:01:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 346965 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5940187jai; Tue, 22 Dec 2020 22:03:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzX98eDyf6XFHM2yoL66uLDwPMJ6771+QWIQP3kK6V0w7qPLzgWGMEQb/J28zbl9uygUp9n X-Received: by 2002:a25:c6cc:: with SMTP id k195mr31010470ybf.503.1608703424359; Tue, 22 Dec 2020 22:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608703424; cv=none; d=google.com; s=arc-20160816; b=SdJCbd2opaaQkyhxBz4aTPQX4iFfr658dzYTqM2R63mda+X1gVnogtbqM77KKayi56 seI20Tfltw2DxdEzO4bF+8any/yWP28GGqhQ6UmtLxvNB1hGmRpUgqzCKw5/jNjD3p05 SyD4PjBrWjgnNTFijz8hm8+ZM5/+c/54UJfb8x7BegZ146utlA2iilw799lK2Hi8dLVS HqMipNibbc/j2V0LsPOgyOF1sXivtuD19J1y9Z7zjpaB3h5hC4RFwnJW5wP7HGu4uzY8 unaDyO+/XEM+xlsT/f0w5pSEapwk8D014WiyHME2VW2hrUej856n8/04bWeIbtKR04FW mKNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=rh7bsPAA/9+Eab4XLXyBRxwo882az2z0pvk2WgOaAN8=; b=zpxj7Q6Da0J0Ajka9X0H/qsiAn8UmlFGPTl07N+7coeKvU2lKS+hpUq7rSCm+QQ51p o1kfM0ToIKmbZiZvGVRPqohn5Djp5L0IHqZg78LtU+d/ZhKVPBaN3guZ8Qxzy7HwKaQR 4hVvTgwX9fLNDCssfDIfYOdrHn436Yw13jV7G4H3KCQoQ1YoM0JQ4E/GOJ6tetv+XtOU MQLvPRjL3Omhu5bjhsyWH5pM9WPb0hOwr7SCIgR5SMr/fYH/v2Gpw4p2OxhLMeeC1yuO IZ/COJ387B1IsxygVn9aUh3vn+44Cm3EPrcw/CEpINIF9cPQOuX5HNtzjlSWTqtnd5bl Tl0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eS9kQpMT; 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 t29si22819239ybt.474.2020.12.22.22.03.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Dec 2020 22:03:44 -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=eS9kQpMT; 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]:50380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krxFP-00006P-Si for patch@linaro.org; Wed, 23 Dec 2020 01:03:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krxE8-0008Qv-96 for qemu-devel@nongnu.org; Wed, 23 Dec 2020 01:02:24 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:45847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krxE0-0000Mp-OE for qemu-devel@nongnu.org; Wed, 23 Dec 2020 01:02:22 -0500 Received: by mail-pl1-x62b.google.com with SMTP id e2so8583594plt.12 for ; Tue, 22 Dec 2020 22:02:16 -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=rh7bsPAA/9+Eab4XLXyBRxwo882az2z0pvk2WgOaAN8=; b=eS9kQpMT7d1nxQeK20G/nwJ/+ZlKzIxNEebr8nosWzKLgX24I2/UoCdF9qN8ooGPM5 JIMJSU+7DUmbDeixpBIifMgs2PpzxEXjHJDiG0/CPScHLGKMUuI+o4oY2RHhklQvnZIm xNdBpsPMvQjHzsbL/j2Eii205W6bzWAT5JsLWK3kjuAleWdlDrItSSzCpE3ncU+5srnc nyCHYHJHyxioNmUUB97lclFY2FOTt2LjJCd8zQp1mEaK5sHVY+1keYqgQImLaMcSEYIo FReKmRrSy4sZvKkanUwOHwg54uTCoIAOFyD7rzRPK9jwX4CK3akcDS0H2bsXE/MQtxzu 6gtg== 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=rh7bsPAA/9+Eab4XLXyBRxwo882az2z0pvk2WgOaAN8=; b=eoKs/60HVxG1NqAa3DzwVWwHRVpdRjCdIOGoP/QfD/uDOiVn1X1Sg/YhwLkju+xjQa mntoUyztBRfLvhG4u1oD2czMFq4rjvPuskTckY+wybgdqXGM1c4NonxiBEz4WMr3J8Ep pPbJCmwJHxKUeE8YkmarOt9pfRMO+mOglMaiixX43leee1V+RjzIbxM6I6opXL0V7YLY LbHd4hSDPa3rleHPJwZZ2pfj9xge6F2tZln25OQL4ktlUoth/xJHyRZxHvAyU4oSDfrI Inv6eZ0gr6g09K88Ey6oO2BEI88KKBJ8s61BmuyNRqJ315wP9IfjJlN5o0kkKyWxxnu2 L9gA== X-Gm-Message-State: AOAM5327IC4pZZtSgZzbT3HvlV11KvQa44Cc6imiiX7Nl7/Sn0yqqAlN iqa9LGeHe7NX6jqX7SEZY1WboBnBcy3Cyw== X-Received: by 2002:a17:902:8687:b029:dc:2a2c:e99b with SMTP id g7-20020a1709028687b02900dc2a2ce99bmr23861489plo.37.1608703334983; Tue, 22 Dec 2020 22:02:14 -0800 (PST) Received: from localhost.localdomain (174-21-139-177.tukw.qwest.net. [174.21.139.177]) by smtp.gmail.com with ESMTPSA id s1sm21943620pfb.103.2020.12.22.22.02.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 22:02:14 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 07/22] tcg/tci: Convert to tcg-target-constr.h Date: Tue, 22 Dec 2020 22:01:49 -0800 Message-Id: <20201223060204.576856-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201223060204.576856-1-richard.henderson@linaro.org> References: <20201223060204.576856-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tci/tcg-target-constr.h | 9 +++++++++ tcg/tci/tcg-target.h | 2 ++ tcg/tci/tcg-target.c.inc | 14 -------------- 3 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 tcg/tci/tcg-target-constr.h -- 2.25.1 diff --git a/tcg/tci/tcg-target-constr.h b/tcg/tci/tcg-target-constr.h new file mode 100644 index 0000000000..ddf57ca9d0 --- /dev/null +++ b/tcg/tci/tcg-target-constr.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: MIT */ +/* + * TCI target-specific operand constaints. + * Copyright (c) 2020 Linaro + */ + +REGS('r', MAKE_64BIT_MASK(0, TCG_TARGET_NB_REGS)) +REGS('L', MAKE_64BIT_MASK(0, TCG_TARGET_NB_REGS)) +REGS('S', MAKE_64BIT_MASK(0, TCG_TARGET_NB_REGS)) diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h index 8c1c1d265d..cd3dee51bb 100644 --- a/tcg/tci/tcg-target.h +++ b/tcg/tci/tcg-target.h @@ -210,4 +210,6 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, /* no need to flush icache explicitly */ } +#define TCG_TARGET_CONSTR_H + #endif /* TCG_TARGET_H */ diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 50a08bef03..9ac6da2e21 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -384,20 +384,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)