From patchwork Fri Jan 17 18:23:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 858235 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp843380wrb; Fri, 17 Jan 2025 10:29:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXzMme282ZvMTCzTjE7vsQhK3LLxQZ6fwgg6GpMDKApzPxXNQV43iYcow+KiMMeoXlxYdpX1A==@linaro.org X-Google-Smtp-Source: AGHT+IEY6x6Y1QWxnYUKvLfyzpOS6Ig1r31JswfWp2eIOblIWhax5MoeitYhIxzyr91C6hU6KjE4 X-Received: by 2002:a05:620a:2a0c:b0:7b1:48ff:6b62 with SMTP id af79cd13be357-7be6321be3bmr569126385a.16.1737138596887; Fri, 17 Jan 2025 10:29:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737138596; cv=none; d=google.com; s=arc-20240605; b=MSDG0eMJ1st72naEhEYKIzzbNFLZPMrHPdOnviDd14+WRocVD3mB4RczBmcVhuwXlg d1HecE4+7s/YorzXaiDpRLbKIbBUwQ+tbfZeQrnmE+4y9xDoe/KkGPK6m18FNQkldAaU 1eWPLt7/54oxgqOMn23ygi15JUDus8UyGoXMwZ1HRXv0zdY9yjJ44Px25SmRQajo/YkV 6iduEqK8IwS6+UUUGxoIhioS16cOqHv8e9qDKXRNASVhhpajbdiwQOnKJ6z6/+wAKWeP c+T7Lph198CnQ7nchldq7ThiSssOBbU9Qf+xQX3fxzcbbP7FzihDoArSk0om9kVQ5VCX L6SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:cc:to :from:dkim-signature; bh=8DcTEozh86Xrwd11aGFdHOjTtoqytx9vFk9B8/PjCx4=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=CGoJgb59SQBM4zl1ijqED0gmt3CBZk14V8ZbHzJwgqarOKPNKHlcA/qfEieKqz0D31 3EpZcyVp3cnAE1FB48jtrBzmtbON36tCgK8LjeKa85JtWuqjxM3hEkKgkFqr1UihH5Az KZ5IK2m/3eozzJLuiuRTrDAKhX4YAUSaSLJU8BLTBcYiko5jJg4+ZzgIDv7Wep/3Y7kw Yz+ANqN6hF2rw9Hs4iBUj7FaI60GxTjO5wtiCRYbPp398wAZbl2iyV/CLzftlvsY1OrE TLIT6VbTFXVj0ILnF0x/T+AEZCfKtTztA2i9ZNfN2Z+9ZpZGg6MhrpDQwAbmhARm3Na/ TY7Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uds1S6Z3; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7be614bedbdsi320887285a.253.2025.01.17.10.29.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jan 2025 10:29:56 -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=uds1S6Z3; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tYr1t-0003z7-2w; Fri, 17 Jan 2025 13:25:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tYr1o-0003uj-T3 for qemu-devel@nongnu.org; Fri, 17 Jan 2025 13:25:08 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tYr1m-0007pr-CX for qemu-devel@nongnu.org; Fri, 17 Jan 2025 13:25:08 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2164b662090so47456075ad.1 for ; Fri, 17 Jan 2025 10:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737138305; x=1737743105; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8DcTEozh86Xrwd11aGFdHOjTtoqytx9vFk9B8/PjCx4=; b=uds1S6Z3GxU0a78eUecYP0zVfgSLhfPuHJRCQUDcqT8sn0q9IS0TcQnh/vfPcd5Pti 9SzHyKPjzkHPP/ApZJ8Kyd8m4x5WQGY8QOg1PoUqGC6f7UuqzTQAh77jImnc17XMTo7e 2Il+7qU8YNQb9PUq4H9hJuVo8c/paB4FL1+oR7FH/iMSNIaQ2we/bZbUk3kXyQntSh48 8b21Hz6FVsbg4xUKU8ujE20LlaS8OAOBsuIqGow8tlqoyfd6SSc1LxQfQsPe/lh7hMKc ia4Oe35G9TlmTwLr9rEtfYlKYx1JyNwJZ+JI9PIw2LBRM/HCkTPg6zJeHaSHpB/3tsvr VoPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737138305; x=1737743105; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8DcTEozh86Xrwd11aGFdHOjTtoqytx9vFk9B8/PjCx4=; b=wsuq4NiHYiL6ugZP1941QsJYbXOjXg2SoE2HfFxEaHvqqcL2rt0pAjMZ0XAGW9K/9Y sO4cf6J+kXtzShp5YCMUVntAIBx/aTORTRjYPPsQt2j6lqDvjbTi8zLd5rBTT1WdtqMY pcfu96ZxrzxoJ8j8bTkQTKrkHXMXlQQcYxx2+WTUliGN4uGxxXdBxylXixnfvCvoC1bX JBEqfWD1+ZhFO5bPt7cdukpsTdkAyQry2xfG8GeHYxuy19JKq1DmXlELovK9j38z2N06 2VpaRsRJv+vl4O8G66ATxKIqwe350G8ksMZ1l3wtzPFUovaM44op/ZDY2y1HWcAXNcop WdYA== X-Gm-Message-State: AOJu0YyTZgn0aK8AiNEis3eRJ63+u+cc3VUxhMuBc3pOl5Da0XTOMid7 ZOX3+jrnUAXUICbBeEWPOLzZ1Dlq5sbmY9sq2abW4GHuGJQ07/nKRepZEza/lpWOpsgdSoONlFo S X-Gm-Gg: ASbGncuqIDNrcZfL3PVKcTlil1JomVzN7FaFDDm6nZXpNYExAoxy9757xz62OrpBamk ZkjmSaBHrmYRXc3AvsE+cjYPB0z4fSNcZkRgjbBXhAM8Vg2B8nOHwIZBm6RhBRrwG8KnQhzpFwx 2turaoCX8XC3Q8FFlkG2pLLTsA3pfIyiPDZNDyL0B3BWgvSOaHgzEN9F24/RmSl9NZ1cQCytusY ASC66SFrd4VcwSipsKuAtigdenb11JpJXug9bDECvvPk+xRHVcSQ0sVWfjS0eA5OmP4ADgQUtOZ jXxT+7SIJoV0WqA= X-Received: by 2002:a17:902:e74c:b0:216:31aa:12eb with SMTP id d9443c01a7336-21c355932e4mr58775965ad.31.1737138304938; Fri, 17 Jan 2025 10:25:04 -0800 (PST) Received: from stoup.. (174-21-71-127.tukw.qwest.net. [174.21.71.127]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3acccesm18879005ad.123.2025.01.17.10.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 10:25:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 10/68] target/tricore: Use tcg_op_supported Date: Fri, 17 Jan 2025 10:23:58 -0800 Message-ID: <20250117182456.2077110-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250117182456.2077110-1-richard.henderson@linaro.org> References: <20250117182456.2077110-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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.29 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-bounces+patch=linaro.org@nongnu.org Do not reference TCG_TARGET_HAS_* directly. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 0ef3743f3e..6819b77668 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -3980,7 +3980,7 @@ static void decode_bit_andacc(DisasContext *ctx) pos1, pos2, &tcg_gen_andc_tl, &tcg_gen_and_tl); break; case OPC2_32_BIT_AND_NOR_T: - if (TCG_TARGET_HAS_andc_i32) { + if (tcg_op_supported(INDEX_op_andc_i32, TCG_TYPE_I32, 0)) { gen_bit_2op(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2], pos1, pos2, &tcg_gen_or_tl, &tcg_gen_andc_tl); } else { @@ -4113,7 +4113,7 @@ static void decode_bit_orand(DisasContext *ctx) pos1, pos2, &tcg_gen_andc_tl, &tcg_gen_or_tl); break; case OPC2_32_BIT_OR_NOR_T: - if (TCG_TARGET_HAS_orc_i32) { + if (tcg_op_supported(INDEX_op_orc_i32, TCG_TYPE_I32, 0)) { gen_bit_2op(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2], pos1, pos2, &tcg_gen_or_tl, &tcg_gen_orc_tl); } else {