From patchwork Fri Jan 15 21:04:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 363777 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp211240jap; Fri, 15 Jan 2021 13:14:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrAp4ifAAiwv7Yf8Q6X1KarhKYu2lkTAtlzi8OX87vGaltzLHo/IcQOIdy9SMydYP7zw3M X-Received: by 2002:a25:40cb:: with SMTP id n194mr21091802yba.30.1610745280452; Fri, 15 Jan 2021 13:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610745280; cv=none; d=google.com; s=arc-20160816; b=aYv2vC9MgqEyh9f9NpXGb01ALgzshkkgb1WAJFzFWukC/o6KZ8qak0da/jSzwfMktD VLY3WpHvkfQnKaX77n11EiZmoAtqEccv2tllQN6trADnSp/yT7ilt3UkXMUXrmnSkf/Z bzxxEeffXcQ3ucHIKlgG95twe+rbDrPtjbmx4zKCP+z/HuBgL3SOQgpFpgGuW9thn6YD 36K7XJNKIjLyaYDi4Jly7Gs8DU13tRkOcezxF4NGmUJWU5oEWqXDLdU/H7AVDwh3GJM+ 6VSIZ63PWno/4kHVLxzI+WhIyM9Wi10apoqa+cHzzjxTionRUOrHqmiVfm/B28h6x2Ha H52A== 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=Ov0avaIZi/Buivs4eIwj181rq8Xr5mZrU9MuMNSgcBc=; b=a90N7qWuPEM1R9H3pQxhgj/zLnhSOtEEQihXi/c10yZZWxw2E1+JR75/U+Z9y4ksSO jjjI3Yyyrr0HnaGsKwBktPltUz+dQjXnLqQqAU+dYyRH2kCQJyeytVwfaLwHUjdzdZ4Y tCsnK7ehDJbRdlSiiD1qPZ85qOqs3M4TN8urSmzRXKWy0p9p54H7iA2GFq2lcE0m1EDS ot8fg+MjcJPmrg3LW7Dmw2PS7r+FjuRcvuzsKun+PTWxdo3va4LQqoTt/D+oEEoWURhL sKcpzNzWi4BNw1Lsxn47VhrUXGwXpQRrQdIzMiDwG1s0/L2j/qP653BaOS1jRMq11M9I X4Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oaQECHXs; 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 i144si11589949ybg.448.2021.01.15.13.14.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jan 2021 13:14:40 -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=oaQECHXs; 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]:39664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0WQZ-00060h-S7 for patch@linaro.org; Fri, 15 Jan 2021 16:14:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0WHZ-0003vX-38 for qemu-devel@nongnu.org; Fri, 15 Jan 2021 16:05:21 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:47050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0WHV-0004G8-WE for qemu-devel@nongnu.org; Fri, 15 Jan 2021 16:05:20 -0500 Received: by mail-pl1-x635.google.com with SMTP id u11so1038412plg.13 for ; Fri, 15 Jan 2021 13:05:17 -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=Ov0avaIZi/Buivs4eIwj181rq8Xr5mZrU9MuMNSgcBc=; b=oaQECHXszqwbbFUieHQ4ufEvWOpqGPpHoF1Ziziy3Hs1U9OZAviAXKn+6o/829WMec TiZtR2pj7tS1GeST9N71sYZ9j879Bf3DDbF6m0yeB//A+Seg61Ucy/GZryj8ZX1Q+ug0 pbkEmX85vntsksZp0Mv7a5sGUUMQgCAongsajCXHSnB/G4G0WDxriQ0kksUZCWzMFQbB 7LShD4oLBVS79mZt0PBuWNR+z/yhLiX/kJeezkVVYf4he9abfYXbuIjJ8vI/fyldJEXy MUbJNwh9tbJgDd0GT10r/POe+oF4bEdfm5L1X5hhKdI+lJtcldKwq3GpXLOehgx1SmQP u4ng== 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=Ov0avaIZi/Buivs4eIwj181rq8Xr5mZrU9MuMNSgcBc=; b=T2xwp/qLRll3ZnDC3an25vNiQa1lWdYQgx48bTp5F/WNGXKbQS+WkUw9NXLjdq3uAq moY/mOiX4mbUAKGxfvy8ORIvf6drxjQCtqVz5BfLn/7UGzndc0UlH4IHLGxJacTmr8SX CDKkXLdY/RQQ+qQgf6goaqTvdbn5f9CVm+uvKXFYsVAzjk9AT+YPimrGGvuksuPhL259 MH/eKnMnW1th5fqSEFG+Ww8cXlHcWY7vkcuPFKO2mbj4iftFgSmCMGedSeiPFyLfJVvw WInfq7c677QsyjuP3yVAoy2oryCjWcnFtXDlk9VFw4dPlpimOXYVMdH9AybYU66mC56W oiZw== X-Gm-Message-State: AOAM532JxwvDqGXq2vBYF0Ni78IIeTeJlY3XOt+XugMp0BkIHB1wpWSo 90mMUWrOcCWuwpdKLWw6IqxocJJUfZOPh99p X-Received: by 2002:a17:90a:31cb:: with SMTP id j11mr12770328pjf.6.1610744716563; Fri, 15 Jan 2021 13:05:16 -0800 (PST) Received: from localhost.localdomain (rrcs-173-197-107-21.west.biz.rr.com. [173.197.107.21]) by smtp.gmail.com with ESMTPSA id h15sm8920221pfo.71.2021.01.15.13.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 13:05:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 12/22] tcg: Remove TCG_TARGET_CON_STR_H Date: Fri, 15 Jan 2021 11:04:46 -1000 Message-Id: <20210115210456.1053477-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115210456.1053477-1-richard.henderson@linaro.org> References: <20210115210456.1053477-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.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: Alistair Francis Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" All backends have now been converted to tcg-target-con-str.h, so we can remove the fallback code. Reviewed-by: Alistair Francis Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 1 - tcg/arm/tcg-target.h | 1 - tcg/i386/tcg-target.h | 1 - tcg/mips/tcg-target.h | 1 - tcg/ppc/tcg-target.h | 1 - tcg/riscv/tcg-target.h | 1 - tcg/s390/tcg-target.h | 1 - tcg/sparc/tcg-target.h | 1 - tcg/tci/tcg-target.h | 2 -- tcg/tcg.c | 16 ---------------- 10 files changed, 26 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h index 4fc20b58ec..5ec30dba25 100644 --- a/tcg/aarch64/tcg-target.h +++ b/tcg/aarch64/tcg-target.h @@ -155,6 +155,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t); #define TCG_TARGET_NEED_LDST_LABELS #endif #define TCG_TARGET_NEED_POOL_LABELS -#define TCG_TARGET_CON_STR_H #endif /* AARCH64_TCG_TARGET_H */ diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 16336cd545..8d1fee6327 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -142,6 +142,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t); #define TCG_TARGET_NEED_LDST_LABELS #endif #define TCG_TARGET_NEED_POOL_LABELS -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 77693e13ea..b693d3692d 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg/i386/tcg-target.h @@ -235,6 +235,5 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_rx, #define TCG_TARGET_NEED_LDST_LABELS #endif #define TCG_TARGET_NEED_POOL_LABELS -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h index d850200855..c2c32fb38f 100644 --- a/tcg/mips/tcg-target.h +++ b/tcg/mips/tcg-target.h @@ -207,6 +207,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t); #ifdef CONFIG_SOFTMMU #define TCG_TARGET_NEED_LDST_LABELS #endif -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 40ed4b82dd..d1339afc66 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -185,6 +185,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t); #define TCG_TARGET_NEED_LDST_LABELS #endif #define TCG_TARGET_NEED_POOL_LABELS -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/riscv/tcg-target.h b/tcg/riscv/tcg-target.h index daf3ef7b5c..727c8df418 100644 --- a/tcg/riscv/tcg-target.h +++ b/tcg/riscv/tcg-target.h @@ -171,6 +171,5 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t); #define TCG_TARGET_NEED_POOL_LABELS #define TCG_TARGET_HAS_MEMORY_BSWAP 0 -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h index c43d6aba84..641464eea4 100644 --- a/tcg/s390/tcg-target.h +++ b/tcg/s390/tcg-target.h @@ -159,6 +159,5 @@ static inline void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_rx, #define TCG_TARGET_NEED_LDST_LABELS #endif #define TCG_TARGET_NEED_POOL_LABELS -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h index 5185b00524..f66f5d07dc 100644 --- a/tcg/sparc/tcg-target.h +++ b/tcg/sparc/tcg-target.h @@ -168,6 +168,5 @@ extern bool use_vis3_instructions; void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t, uintptr_t); #define TCG_TARGET_NEED_POOL_LABELS -#define TCG_TARGET_CON_STR_H #endif diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h index ab832aecc3..bb784e018e 100644 --- a/tcg/tci/tcg-target.h +++ b/tcg/tci/tcg-target.h @@ -207,6 +207,4 @@ 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/tcg.c b/tcg/tcg.c index 2a85532589..7b4d0b3f69 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -103,10 +103,6 @@ static void tcg_register_jit_int(const void *buf, size_t size, __attribute__((unused)); /* Forward declarations for functions declared and used in tcg-target.c.inc. */ -#ifndef TCG_TARGET_CON_STR_H -static const char *target_parse_constraint(TCGArgConstraint *ct, - const char *ct_str, TCGType type); -#endif static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1, intptr_t arg2); static bool tcg_out_mov(TCGContext *s, TCGType type, TCGReg ret, TCGReg arg); @@ -2458,7 +2454,6 @@ static void process_op_defs(TCGContext *s) ct_str++; break; -#ifdef TCG_TARGET_CON_STR_H /* Include all of the target-specific constraints. */ #undef CONST @@ -2474,17 +2469,6 @@ static void process_op_defs(TCGContext *s) default: /* Typo in TCGTargetOpDef constraint. */ g_assert_not_reached(); -#else - default: - { - TCGType type = (def->flags & TCG_OPF_64BIT - ? TCG_TYPE_I64 : TCG_TYPE_I32); - ct_str = target_parse_constraint(&def->args_ct[i], - ct_str, type); - /* Typo in TCGTargetOpDef constraint. */ - tcg_debug_assert(ct_str != NULL); - } -#endif } } }