From patchwork Thu Apr 3 23:49:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 877980 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3527426wrs; Thu, 3 Apr 2025 16:51:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW/Q545LkjZsMhQwYlAXhjxaE/2D7Z7PoeX0viCp83EdFcSuAw2f0XV2PHASWznXPyn/SehDQ==@linaro.org X-Google-Smtp-Source: AGHT+IHD8PehYzlnGQeYYkHFU+dqsHhOFW0qO4N80oQgsVAKBIPYZ2KVZPsB+hAfQa/b1i62/I37 X-Received: by 2002:a05:620a:24ca:b0:7c5:3f38:9583 with SMTP id af79cd13be357-7c774e24a8emr168297185a.50.1743724267414; Thu, 03 Apr 2025 16:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743724267; cv=none; d=google.com; s=arc-20240605; b=kNDCLsTarNnqlUKrenPLjgrOLs6E+u9OjCLZHu/ua8Sr7APPdkF2bXNJ67TFc0/B1C IyxA/zoeD4z/C/JCyb4Rrmh92IFQRc5ACRVhYqHek3n0eofVdh+4aRfuh+z5pp9Yp9DJ kXpcbse6zTaeLk+zCYJwx2bkRxzwj+2TOcPo9KvPBKotHQXfDh0mpHfqiWattS8zJxso lVAmZTX4FjXRrfeLUGV4ym83BvdWd9DBLMjcZtFIiCKQV+Vp/jOJbp/L8tMF8XOzv65o Sgjj0RFXvEdSJ3/nOmIGVPlty02KPFnBhOKjUSn/fP5vZHiVwupRJg8SiuqnwQKK6uBC olnQ== 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=zdkIZVCk0oK1AHydxn4CXLts02MNjyPOTlWUooOm/tw=; fh=ISslU+6AOAPvfm3mmMuq/p0l7xeUGlnJLjUVX+iCVao=; b=bmcf1ATzJ/ycM4NUnj/WW2mvx6Ca+L1Ai/rcL533UnSGT0UQ5tfBF76dGGkep9s/0e cHY1DH+Cg9CSvMBTmIysAZMJvJ6yhj+I0cIoDYZpeEG0ML7VLlEA++KyODs7cFzCk71M kfdFIMLWhNxHPa/eX6ITPTeETq8hX/CrJK4AZNhffNXNsqUomb8Ks1B1fSn5im6dJRow gEPi96G8dRecPrkmBbwboOoj/ok/dnv4GmKG4bzTQmHcqk1d8aGEk5BS2KCxuW3rHsUj zZ9d6LZiMYS6OFZvbpcvx6lAZVe8xBtuNED58ekywiyCZQULgBzgXbT0o+n68cwJd6NR AZmg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=abfsmUee; 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-7c76e74a7dasi211906285a.79.2025.04.03.16.51.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 16:51:07 -0700 (PDT) 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=abfsmUee; 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 1u0UK3-0000u5-6u; Thu, 03 Apr 2025 19:50:11 -0400 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 1u0UK0-0000k6-06 for qemu-devel@nongnu.org; Thu, 03 Apr 2025 19:50:08 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0UJx-0000VE-L2 for qemu-devel@nongnu.org; Thu, 03 Apr 2025 19:50:07 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3995ff6b066so810785f8f.3 for ; Thu, 03 Apr 2025 16:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743724204; x=1744329004; 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=zdkIZVCk0oK1AHydxn4CXLts02MNjyPOTlWUooOm/tw=; b=abfsmUeeBqROTADd5ddB16yN5Bn0HBLa3Hnxk5HeN9tQIPsEmjMHQQtCT4sGrgd2iV LgTpXB2rodemD5jM6T/OadrJFso+JpPORTlb6vtliEISTyD2K/gOAa7tchUp6P/x+BW7 qTzCyNAWxgu563w6Ch7GaJa6QtkFkZDWbQC3jS3ui1cV2CZznrXobpK8VDkewh9n1o2l EF3RgG87G1cwCGERgcCVqBXG2yWoj72Mowxj2a6JLty+MBOXqzxKtFslW22RYg0shY/c gXtfRADjNZ2fCItaQEBtCXVVGAKd83zjhX6QYlbbTGr4W9YAx/Uq7oOakvD9HxCJEv85 L+PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743724204; x=1744329004; 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=zdkIZVCk0oK1AHydxn4CXLts02MNjyPOTlWUooOm/tw=; b=r9LWLGXiKEdBZh4IZgNWJ9cf5iBziihgb5kKsIKKyMcLwUPdU5HyOlomYn4pMBTMke VzovnmwY+pexXMtk3DtD3yvBoNYJSp16h7b3aEcg2yr6ER5+cTpkmi3OBuhj7+USEepn GWcNLoTReoyoZb7Z0MC0Ofxks46oUukdmsAJnGjMnmrjC3jqJvBFrm2HVvQr5jpcw8W6 9okuZxho0FImz/9iWFhhd+pluITZ2cx5g/UCKJUnGEd5UfdltttCGTF/WTrzYMegL0KU +nzRBsfcXraaBWAWjVLbixlDEwaOqioXrhuv5q1orQXHE6VSw4Kl+m2NdqH/9m9LDHkB jmXA== X-Gm-Message-State: AOJu0YzHk4fpIQVJTVZ/L7FShoai/A35RWGYAM+oOTGcvnX4OEEBOCQn d4CW8B4NvOZG/AtjU2+9uv+LR/xSIIPhFNPpSS/rzY8ZuzrgJCKGUyhBbe4ZOYrGXicJEfRhr0D j X-Gm-Gg: ASbGncvCjMTYk6SoLPEFv868E9bBw55GPoIWpNTz0UGv1Wpbp7AiP0F+oKyfOR/kCFN hqr6F3fNhZsB0bBfR0/Hf+eoSlbhjtUyiUxdRGUv2Tkn4Tbq3R6/XiS1xvjfW2Z4EUdzWGxVl+8 FHy1jJLzPCWwjpFsL1E0IPqhjcc+a4ULBeKURixa3gjzkTC5wJC1wKcp5EyJkcDyUO1WwfZr5QX AKRT4hn9pBCcpN7LA1sSarNGHq8CdXA9vX5bJ6EJ7mW/NAWK17spBJ+I4KnGSApJs6CVisMLb0X 7fMb/z6AnPhHnUI7d7/6NQQzJYjw7zw0WN+4kHX9W5amqovyu5MovPEe9dTe6Q4Aplnb6n6zsCz pFYCCWHfIbZJrSOX/CBk= X-Received: by 2002:a05:6000:220b:b0:39c:2692:4259 with SMTP id ffacd0b85a97d-39cb35981fdmr991805f8f.21.1743724203828; Thu, 03 Apr 2025 16:50:03 -0700 (PDT) Received: from localhost.localdomain (184.170.88.92.rev.sfr.net. [92.88.170.184]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec3174cf0sm32222245e9.0.2025.04.03.16.50.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Apr 2025 16:50:03 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Markus Armbruster , Richard Henderson , Pierrick Bouvier Subject: [RFC PATCH-for-10.1 07/19] target/hppa: Replace TARGET_LONG_BITS -> target_long_bits() Date: Fri, 4 Apr 2025 01:49:02 +0200 Message-ID: <20250403234914.9154-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250403234914.9154-1-philmd@linaro.org> References: <20250403234914.9154-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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 Signed-off-by: Philippe Mathieu-Daudé --- target/hppa/mem_helper.c | 3 ++- target/hppa/translate.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index 554d7bf4d14..03cd103f284 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -19,6 +19,7 @@ #include "qemu/osdep.h" #include "qemu/log.h" +#include "qemu/target_info.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/cputlb.h" @@ -101,7 +102,7 @@ static void hppa_flush_tlb_ent(CPUHPPAState *env, HPPATLBEntry *ent, tlb_flush_range_by_mmuidx(cs, ent->itree.start, ent->itree.last - ent->itree.start + 1, - HPPA_MMU_FLUSH_MASK, TARGET_LONG_BITS); + HPPA_MMU_FLUSH_MASK, target_long_bits()); /* Never clear BTLBs, unless forced to do so. */ is_btlb = ent < &env->tlb[HPPA_BTLB_ENTRIES(env)]; diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 14f38333222..81f535589cf 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -18,6 +18,7 @@ */ #include "qemu/osdep.h" +#include "qemu/target_info.h" #include "cpu.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" @@ -3731,7 +3732,7 @@ static bool trans_shrp_imm(DisasContext *ctx, arg_shrp_imm *a) t2 = load_gpr(ctx, a->r2); if (a->r1 == 0) { tcg_gen_extract_i64(dest, t2, sa, width - sa); - } else if (width == TARGET_LONG_BITS) { + } else if (width == target_long_bits()) { tcg_gen_extract2_i64(dest, t2, cpu_gr[a->r1], sa); } else { assert(!a->d);