Message ID | 20250404223521.38781-6-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp4006167wrs; Fri, 4 Apr 2025 15:38:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXcML5qNGOZxb59yOQ0J6KSFdpP2mkBz7Q+qL3C1hkuX9JDf+fE4s+75l8xhlK2qCl1MHbmDQ==@linaro.org X-Google-Smtp-Source: AGHT+IGxzHnAd1j3ghwi/ULIoqlZqOawiZhRaoRneSYmQQjVoPYnS/GhHH/TJOtpOhFgwJJ1/Kzh X-Received: by 2002:a05:6214:f0b:b0:6e8:9957:e705 with SMTP id 6a1803df08f44-6f01e79466cmr69442936d6.34.1743806298395; Fri, 04 Apr 2025 15:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743806298; cv=none; d=google.com; s=arc-20240605; b=l1Vm+TJso8coBKqLazzto8nd2cJfcedWCzd8yZO9xBr4MwTXXOLP2bSEOHXqn7lZ1f JlkqzEwrI2WJVbE52nP3eQ89kibWd51fXlmU3N+PiFX6hfzo2+3y5+7e9rw7/RJTya2w JkrOEvY8beRQBqK9wORWbrLyc51YY3205Zzp7YgajPvozJK8kV9jeJ10Dl3q9A0SmU+4 R9RG9hawQMRZulfc/7+RtSUR/usWJzfFJMvUHhjyNmxA6qDYgHrSKCjCW8s5ks2gEayR Eag7roxuIt4v5fjaJxnrj3ltAu1jdMgZQd/tv266OLlqVFFVIbCckmsY1a0A/2UiWPJJ JbbQ== 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=aIKjbL/Q/KXdvXQSiletYLg6oVeSYWM09NCAwSNeYqY=; fh=089D9cN8gKCxRQaMV+d8/EwypuoUoS4FPKA8rjpOLh8=; b=XEZ1rmHACNndpIOGiYWhyp1AcIzcyG+W02gjkgAydMZSpQ3/jVuSwwjEhbe7ejQUr8 RqRT7bm6W4m6JgIRz/vghGKaecyEXV81cCuYFbKnTu87MPulbA9CjKvS59pl7saoczZu NJu9h/IEAThBoqos0ftm5mbRgV+SSrCLDyqckD/Sb8IgaQY0J5LBwoubJp4yuYawJOMd lMukBtBXvBfo//iezMF1RLsAttzjXb5IQtjtPwL0SdSnJDqqxWFIinzRuCk0BTZSHY94 EzJB4hUaIPni7RE0pokQJZt1fnMEdKc/85+1/fw8kM7Rig0j7AGIq1wliM6b1AJsTQpr EIig==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=psLiHy6r; 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 6a1803df08f44-6ef0f10d78asi40125436d6.267.2025.04.04.15.38.18 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Apr 2025 15:38:18 -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=psLiHy6r; 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 1u0pdt-0000lk-8y; Fri, 04 Apr 2025 18:36:05 -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 <philmd@linaro.org>) id 1u0pdi-0000iC-2G for qemu-devel@nongnu.org; Fri, 04 Apr 2025 18:35:54 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1u0pdg-0007zi-8W for qemu-devel@nongnu.org; Fri, 04 Apr 2025 18:35:53 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43d04ea9d9aso12393075e9.3 for <qemu-devel@nongnu.org>; Fri, 04 Apr 2025 15:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743806149; x=1744410949; 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=aIKjbL/Q/KXdvXQSiletYLg6oVeSYWM09NCAwSNeYqY=; b=psLiHy6rfNpl6bNdgBs6ZcXVJAnt4AmdbkHxLG3utYw+5oytTHBJKtRaBBFoVJ8DC7 dqm1ixAK9Q+4wP8D9mnnqaSWrMWlm7tCDsMMknonftGTiTebhvgr6zMl9bs4f6o+j9Lg rJrScyAOkIBUajUu1z9Q5kwG72FuBMIIFThVDNxHxO5jr+V2WiU1XrIqsZnHTdk3dD+8 PPEwUHAmrp0BD5oEzoIL1lpj5vKmLvbbzze6WxszsU2Etcg3VVnNs+omJcFmT4bLUfJb whaumcbuX74nPwplrTpnyYALKmqEh4O+YUk5BMAPJ+WB0LjOH5SZKvyp658TCgGu7171 Qrsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743806149; x=1744410949; 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=aIKjbL/Q/KXdvXQSiletYLg6oVeSYWM09NCAwSNeYqY=; b=vjtECBeABYrCNI4yodhcDiAi7MigFLlb1NnO5k1ifLGO9DGcyWd8KpTBnFJE5H/4Gj 9z2kmTOrGG2P4HD35kQsJMMy7tb0ikwzKz7hMaMuQw67mYz14SUUNmrLu8SkE64mGsth 9g/uI0jDdSStpLGNyVKjE37dZuz2fJInbPxbuR6cn1gbcgV+4Lczu1E6yQDHukykCAhH qCR3Jw9LvXMGaKQzHKqDDGW/1rtAN9unrzU4oS6V1cnA1CWJf9ec6qhBJkbR7qaIcaYT 9/HpBtNevM7yweWD2HEN9otW42neZUch0BMnz6LoOLKMgQE5WfJcqdwXRTPHI+5O9HZv TmBA== X-Gm-Message-State: AOJu0Yw/GtUkE2CKoWqBf/8GMh/l7/Tj7mgesvHpUI1Hhr1VYox+9mXG eKQWKxc8WF6s0ODJ+U6bb0j5XtLcllMNloxUYvGYWui61h4/aq63INvOHcrlxec99WqejY9FkdG E X-Gm-Gg: ASbGnctd8yeVkPw+FTQLBDR4zjx1fzGm7SMWNelbhlTg7MJ9OLt70wvDhfEmhHBQp9I IKpOzq6CQVAn3++8+Xv2trFmpYKgtHaW00lLwZxbxoKfC/c2Yi2t5KXwt3PaupQFhAfg4mcOixC cBl5prokrSURS3em52TkMSY8UXHuHXSIPkKNVLAygwj/ahupvjseLME1ubQMmg5JU6E1OitXwwL tVKxrItOy98jpgJr1+2P/vmdmGwr1YMPuWTDJ/cZi6cSTqcPFpdMFj0WP0E1Xugbxx/F+4AVGti CBJyqHcVTqQNF/BM7OmfsvZqq6tSopLSgLaN98ZboNsBUAvEjn3fFHDt19gzQLrAHajUma9uY+A oP/HIkiHmCWhCGR+3oAIvgyaoWj5oro22zGI= X-Received: by 2002:a05:600c:6c11:b0:43d:10c:2f60 with SMTP id 5b1f17b1804b1-43edd3bd68bmr12589795e9.24.1743806148873; Fri, 04 Apr 2025 15:35:48 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec3429f67sm58989755e9.7.2025.04.04.15.35.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Apr 2025 15:35:48 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Peter Maydell <peter.maydell@linaro.org>, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Gustavo Romero <gustavo.romero@linaro.org>, Laurent Vivier <laurent@vivier.eu>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH-for-10.1 5/9] target/arm/mte: Reduce address_with_allocation_tag() scope Date: Sat, 5 Apr 2025 00:35:17 +0200 Message-ID: <20250404223521.38781-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250404223521.38781-1-philmd@linaro.org> References: <20250404223521.38781-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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 |
target/arm: Remove some TARGET_AARCH64 uses (MTE & gdbstub)
|
expand
|
diff --git a/target/arm/internals.h b/target/arm/internals.h index 01408e40a34..0728e5c5348 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -1701,11 +1701,6 @@ static inline int allocation_tag_from_addr(uint64_t ptr) return extract64(ptr, 56, 4); } -static inline uint64_t address_with_allocation_tag(uint64_t ptr, int rtag) -{ - return deposit64(ptr, 56, 4, rtag); -} - /* Return true if tbi bits mean that the access is checked. */ static inline bool tbi_check(uint32_t desc, int bit55) { diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index 9dcdc1d91c1..8a6e6e4719d 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -205,6 +205,11 @@ static uint8_t *allocation_tag_mem(CPUARMState *env, int ptr_mmu_idx, ptr_size, tag_access, false, ra); } +static inline uint64_t address_with_allocation_tag(uint64_t ptr, int rtag) +{ + return deposit64(ptr, 56, 4, rtag); +} + uint64_t HELPER(irg)(CPUARMState *env, uint64_t rn, uint64_t rm) { uint16_t exclude = extract32(rm | env->cp15.gcr_el1, 0, 16);
address_with_allocation_tag() is only used in mte_helper.c, move it there. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/arm/internals.h | 5 ----- target/arm/tcg/mte_helper.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-)