Message ID | 20250102180654.1420056-24-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp7901180wrq; Thu, 2 Jan 2025 10:07:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUXoqkccujaM47c08aaYUmZ3T9IQrkmUdY9JhEjalBSy1HVpC4TWrWPKtwiyJ0wDPZVHX90lQ==@linaro.org X-Google-Smtp-Source: AGHT+IE7Kn84KKaEN3bP5lv/NxzvTCOP4dWZY+TNFAEl1vZleGAzDXE+w+VhcogS/tJT4CTCBVvg X-Received: by 2002:a05:620a:600e:b0:7b7:106a:1991 with SMTP id af79cd13be357-7b9ba72c011mr7823997185a.16.1735841273047; Thu, 02 Jan 2025 10:07:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735841273; cv=none; d=google.com; s=arc-20240605; b=b5qa94D28DaHEj8ZfxqpTslJILaZN1F3WWu9YBIUZWy4Eno2namJJ1A6mvT2EJQClp dnhhKgUB6GieuNawsB2SB1Op83nnbhh5s3uOkNA4e6ZdtRPKU+XJ9EFEiSo3UNJaScM8 ytqTLONUl2YL9a6HcSMdiM02Rt5ejGBFfeCy12IhmXaqVYUOi2HYQnjPJjp3J6taUZ77 R+UjhzbYDq5S4NJdpTjMTpTb0X+rDVi7wlK7rHgaQM697GcTcaqUmbWcNLjx36bOPajo Yn51mTUVpqTKmzhpFpFHZl3rDAJnIT6lBBMPmH1X+VW5eQzTqM0Hf4Y0Dd3Ub9lbIobM 4Yiw== 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:to:from :dkim-signature; bh=gm1Ss0byfyZskUZlhHT47TIvd3i99CNzu3mglGlAgro=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=BfxoKfVsLyX9/eEXjRPjgAwdGATuCarZh6huvInPivxW/FfnNYZgYHsBRAzTxOPHXY MnlWRZQ/o3JG+JvZnBqeY8DDWKJ2lcOBSfRtQS50gnorYDdqIo+o+8wsDXrnyXTT2Bx1 FK8Gup0MDsBga3+hr3snRxfkkUtsTJXjfc3SMBwgnXLojE2+f1iygEBb4CrREVyiprll /U5yl2lngmILZPhrcsUPz0EGfqXHWgIoFTa4LCvn2pT9v+mFE3BmPwGHCO0b80gjl06r dti3oCwIeLwCmzBRkmDr0LRWhbM9cR/YcXj1S0A20MpWxg5XKi8/umFbBRhGDN2XPajZ WGCw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TcIPmSQY; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac478680si334069685a.333.2025.01.02.10.07.52 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jan 2025 10:07:53 -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=TcIPmSQY; 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 <qemu-devel-bounces@nongnu.org>) id 1tTPbc-00076I-Fr; Thu, 02 Jan 2025 13:07:36 -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 <richard.henderson@linaro.org>) id 1tTPbK-0006yx-Lz for qemu-devel@nongnu.org; Thu, 02 Jan 2025 13:07:19 -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 <richard.henderson@linaro.org>) id 1tTPbH-00059s-VD for qemu-devel@nongnu.org; Thu, 02 Jan 2025 13:07:17 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2163b0c09afso155743595ad.0 for <qemu-devel@nongnu.org>; Thu, 02 Jan 2025 10:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735841233; x=1736446033; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=gm1Ss0byfyZskUZlhHT47TIvd3i99CNzu3mglGlAgro=; b=TcIPmSQYrxS5yxK0VmHMa7sQZklvEZDyGfNSQiq7EO20BIDoBTvLTH6SSWs8xEHXtu aDlexsrqFoXeXmiqRzmjTRvQOuokxcMKkAqySY5q92iY/srmxd4N8t1+nLwsmU8Pjat7 oab/FopIWSb1AH56kQP/HmIZFZzSuzlEdtD45CfYN5hjUP0DbVQvkpO1anTUsEMF4dt8 +fFBcgE8n9v0U9OWkNsdipMu+WOsW2y0fxfTvobfMP+4iNDs6UfRxh8xsh+4u5DqRIgw iTFuaWGJ1VzJRMZlvSOyV9fKfylQOLjLlwUDto2g7TaBPsdLQ7+/zq0gGIMSSuD294N7 VeBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735841233; x=1736446033; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gm1Ss0byfyZskUZlhHT47TIvd3i99CNzu3mglGlAgro=; b=eAh1//s+Pq+Uf7r2jYebIaDjVHREeh+wBVGPXifu6535FZzPBsjrr+7jEiGfXbrWcZ vvPN37GbNFnb2+Sa38bWiVXrlAHzJCrCuE9vm1bNn5/bUCIF92oSOe+SHeVe+/ycQVgw 6rmcaBDzioBFILzev5bgcUOrPSnPQevy1ZyC2IcAfDOvjNu1Yu7PgOzr6xtfSMM1UG5q 0J7AUkF1OBtELvTorncy3h65Ujk+B0DRaK42kJDgIrydBuGvINmtobQloqk6DMx4wVSQ YP7ssxUJxYUfHKsKfJwDCYS/dGJOEIvknijVZRkO6AnMTw/SHSIJcGSZJUDel94wCKki k8DQ== X-Gm-Message-State: AOJu0Yy2uXYbxu3tO6T/gtyQ4DtT+q7d8HlRik2X5e6VRdqj5zFgkfry w+mTk7MYkfuL0cencGayJ/0wYfsA5n9nY6/sDSSsrfgJPgpSJzzsQCz5EHyxDObcVZutJpVznhn O X-Gm-Gg: ASbGncvgb8mwcWGAMewCU0LoQTMLeUB6sI2+P8dl9Q9Y8ZKiYToMEPkHbyIY+wUn7Bk bDDXRt9sdEzLwByy9MtZXuclzJ6zlGnmqMQtrlmSKHcYf/RXiTnRof7ExZVVT0qe5bZfPoYkzRb knswBjfRprnymEbh3iLqEMrdCk6lXW2UhYkS91b9KeQohVowneuZKGNkJY0b6DgGOL6tXOJSPlz U0kJIM2Gngn7X4mZt7+dM6Er5rk145i7UO83TgHjuPMdnqvxfIHXRb5NPwAVA== X-Received: by 2002:a05:6a00:8c4:b0:727:3c37:d5f9 with SMTP id d2e1a72fcca58-72abdeff523mr57977200b3a.26.1735841233497; Thu, 02 Jan 2025 10:07:13 -0800 (PST) Received: from stoup.. ([63.239.63.212]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72ad3393d5fsm20604456b3a.154.2025.01.02.10.07.13 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 10:07:13 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 23/73] tcg/mips: Expand bswap unconditionally Date: Thu, 2 Jan 2025 10:06:03 -0800 Message-ID: <20250102180654.1420056-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250102180654.1420056-1-richard.henderson@linaro.org> References: <20250102180654.1420056-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Merge *_i32 and *_i64 opcodes
|
expand
|
diff --git a/tcg/mips/tcg-target-has.h b/tcg/mips/tcg-target-has.h index a934f86e30..1a8b6d571a 100644 --- a/tcg/mips/tcg-target-has.h +++ b/tcg/mips/tcg-target-has.h @@ -54,6 +54,7 @@ extern bool use_mips32r2_instructions; #define TCG_TARGET_HAS_muls2_i32 (!use_mips32r6_instructions) #define TCG_TARGET_HAS_muluh_i32 1 #define TCG_TARGET_HAS_mulsh_i32 1 +#define TCG_TARGET_HAS_bswap16_i32 1 #define TCG_TARGET_HAS_bswap32_i32 1 #define TCG_TARGET_HAS_negsetcond_i32 0 @@ -73,7 +74,6 @@ extern bool use_mips32r2_instructions; #endif /* optional instructions detected at runtime */ -#define TCG_TARGET_HAS_bswap16_i32 use_mips32r2_instructions #define TCG_TARGET_HAS_deposit_i32 use_mips32r2_instructions #define TCG_TARGET_HAS_extract_i32 use_mips32r2_instructions #define TCG_TARGET_HAS_sextract_i32 0 @@ -87,9 +87,9 @@ extern bool use_mips32r2_instructions; #define TCG_TARGET_HAS_qemu_st8_i32 0 #if TCG_TARGET_REG_BITS == 64 -#define TCG_TARGET_HAS_bswap16_i64 use_mips32r2_instructions -#define TCG_TARGET_HAS_bswap32_i64 use_mips32r2_instructions -#define TCG_TARGET_HAS_bswap64_i64 use_mips32r2_instructions +#define TCG_TARGET_HAS_bswap16_i64 1 +#define TCG_TARGET_HAS_bswap32_i64 1 +#define TCG_TARGET_HAS_bswap64_i64 1 #define TCG_TARGET_HAS_deposit_i64 use_mips32r2_instructions #define TCG_TARGET_HAS_extract_i64 use_mips32r2_instructions #define TCG_TARGET_HAS_sextract_i64 0
While only mips32r2 has explicit instructions for bswap, we have built subroutines for bswap for use by qemu_ld/st. There's no reason not to expose those subroutines for general purpose use. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/mips/tcg-target-has.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)