From patchwork Tue Mar 25 13:02:17 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: 876006 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f4c:0:b0:38f:210b:807b with SMTP id cm12csp2641084wrb; Tue, 25 Mar 2025 06:04:03 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVbbubf3+VDCt6pYZZ04Ou4NSdToKIRjV2Eu6lDeVfLsPpTp0ej1mZE2eU5rA4PkGQtvIfMWw==@linaro.org X-Google-Smtp-Source: AGHT+IFEsJG44mAfFMQboHg0xDmTLgLQU+eCeYUyuJxJ48j3Tm3dAjyTRxBmLCpL9eBEjbo+CpUn X-Received: by 2002:a05:6512:2311:b0:545:5bd:bf42 with SMTP id 2adb3069b0e04-54ad64f58femr5861029e87.36.1742907843504; Tue, 25 Mar 2025 06:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742907843; cv=none; d=google.com; s=arc-20240605; b=jUdBppA4cTVAzRWsgk20huZaIqPy5o2hsPEv4EFlFdxjonM9XVzy3M5dOoihEpdz7y uBNSj6QHnqrSv8V/JVRcg3XB8ZhChQXMlNDyHkCIb5Y8tb1qGg1yrQbhkJQOK+W7kJCe 0tKGrEQBPd+yde43seQhuWEZGxCUt0B/Gwsvlz0GKQGwxe7J+iQuMJSelHuUI7oeL0Wj I5zbA8XCtfdgZXdAUFCYmgpYoKj3svPykHu3v/keH0XjPOH8WtlPixPCohepe46HMnSZ m6u9zWVhENIRQC9Rr+lz8x3Nn3Ku9EgzZ5Ya+cUNFbK29NFgEKMYbptYE5pi2Ki8mwaY Ac+g== 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=jFyrhQBtENvr7c7C7/qCg1WgDkZETsoaD0YCLqZYx2k=; fh=ysnDffzSNfm5jz9gUyTVF3JREAFBsYVnv8uksZgX2oo=; b=SesKdT7ZtNyOBy3zqj8h0SSP7Is4+iQZDaHhkr3KG0iOnzLixk/KD1wJh3NN96u3s0 qA6xEJhvouNJxLPm5/MBRU23Ks5n2acaf0ZGt2zJiXj9NLDiUViTcYJXRTd/+kWu/tPQ baPV1zIqjZ/xa4nZctS78aRWz7tBLpD4cFpxWtdtstfmpqPTLUwGm6x/2wZHcZ8Vs3Ui LyOYpoDZjALxbTxNlZWPKRuagG1aqWttXXCH34Mvi7RofiNm7+H8F4cJ1NNKcS3Jl0Px 2XztH3ZVCn4aoJWGEb+sYK9RGNRopl7+gBewZTx0KGAS+JpN1uVbDJBkuRZUPEGU2qNv nbxg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMQFBux3; 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 2adb3069b0e04-54ad6531e9bsi4660961e87.453.2025.03.25.06.04.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Mar 2025 06:04:03 -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=fMQFBux3; 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 1tx3wN-0001J0-Vm; Tue, 25 Mar 2025 09:03:36 -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 1tx3vS-0000pr-BF for qemu-devel@nongnu.org; Tue, 25 Mar 2025 09:02:46 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tx3vQ-00082Z-Mj for qemu-devel@nongnu.org; Tue, 25 Mar 2025 09:02:38 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-39ac56756f6so1650159f8f.2 for ; Tue, 25 Mar 2025 06:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742907754; x=1743512554; 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=jFyrhQBtENvr7c7C7/qCg1WgDkZETsoaD0YCLqZYx2k=; b=fMQFBux3glu/qbW8tkOYIkNAwMo4LdITAsXvrfaO0ifEwgFT/Qkq8aEbJuXVLXTeFG U+n86MR/9krLSEs2acs2JdoB0i5kBwVG9VDxebNqBSQS7yROa/WPf4tqLE+4pXkVwhJe FSW4dzWrDr91OPqlZgaMvLfJs63ueTJCM10Rx4U1stpBKNeB0qxh+uKqFdITPHpB2X6h JfPS3620UgWk0Mrc4c0OcOF05iU4mtf7DXjqiCe5cYACAbTV+6+IPu0ANXO6XUS6BiJo Jq6ydDKTdnpGW+Z1WEqkYkfwID1aVFJONbwRmFKOtMGFMuPTpi7jTWr1DlRaghtSleRb FxMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742907754; x=1743512554; 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=jFyrhQBtENvr7c7C7/qCg1WgDkZETsoaD0YCLqZYx2k=; b=NzG52NPwb6Vkg5WoMSq9ORvQkc2MJzvIWGSnohsi3h+qAbYxPghVmK+RbrR5gMpUri +k8w/AMJ1cz4cID1YcbiLlPVspqvzHPLj/w4vl7iQAiINy+chkKye7QfBsIazpwpEX/j jDNgiWZ9ehc3cGmfWgWn6uSRGmM9EkluV7762Rxfdq70TlBBj+iruTOIGA864BdAl2s3 GYFJiXn3X5sKrkoHOd/I/EafPIh+irT2rI+YwtzTDdjWDsQwXF0SO8uZENoec5VUS5sM KXoxW8lkEyNr3rLoRLW9MhOZEWQ5WOUlMpTrUSU7GpDjWqTVT6kWzX92MI3B51u7ypkx KMzA== X-Gm-Message-State: AOJu0YxFrOIgx8pWBVS4RwBPwM4OP2Ej2sQTn5WbY0xJXng69VxLX2tI H08cdbWyQt/1qQIE0GIhE/MhIyDHVQmnep8WnUGkaJCiXT7XAsyxVaYWo1RYRCwkZWy7JZPh70q E X-Gm-Gg: ASbGncuTBF/MKGUJ2XhUs/s3xKzk1Q1/ep+5VvsRZIXwmqkSyw1MiSJRikiyk0h9GdS n/K4oR95uDvHRkHXr5WSz7FNpysIgfYxnPwEeCNMXO8ZCjOFNScJh5pDm4gnXaQ9DoA8V5Gcmc5 58Pb9SQSIrr3YTkBBIBB8LS9VlSnUJj5Nuk7l6TuJz7a6GeGRZcr6kNcSzoxqSUasOjxySEToYz eycoASoeSqaHCGtcv2hhyySk0Y64Zje4mYhVAn0bUZ929wtLp48enuBOtg9u9Vsagpk07k7Smo4 Thugh8f780DX6M3aDluvQyi81/OgNrLp7DIKvSb/UWet4hB4tuQ7MiTH9yCEqsyzA3v7bH11IN8 WajMN8BKoV00IJmQV6mE= X-Received: by 2002:a5d:5f92:0:b0:391:212:459a with SMTP id ffacd0b85a97d-3997f90ff74mr15601417f8f.22.1742907753660; Tue, 25 Mar 2025 06:02:33 -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-43d43f3328bsm200503165e9.1.2025.03.25.06.02.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 25 Mar 2025 06:02:33 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Eduardo Habkost , Zhao Liu , Pierrick Bouvier , =?utf-8?q?Alex_Benn=C3=A9e?= , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Riku Voipio , Paolo Bonzini , Nicholas Piggin , Richard Henderson , qemu-ppc@nongnu.org Subject: [PATCH-for-10.1 2/5] gdbstub: Remove ldtul_be_p() and ldtul_le_p() macros Date: Tue, 25 Mar 2025 14:02:17 +0100 Message-ID: <20250325130221.76116-3-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250325130221.76116-1-philmd@linaro.org> References: <20250325130221.76116-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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 Last uses of ldtul_be_p() were removed in commit 78920b4ff2b ("target/sparc: Use explicit big-endian LD/ST API"), and of ldtul_le_p() in 39631d57d7c ("target/riscv: Use explicit little-endian LD/ST API"). Remove these legacy macros. Signed-off-by: Philippe Mathieu-Daudé --- include/gdbstub/helpers.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h index 6f7cc48adcb..26140ef1ac0 100644 --- a/include/gdbstub/helpers.h +++ b/include/gdbstub/helpers.h @@ -95,13 +95,9 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int len) #if TARGET_LONG_BITS == 64 #define gdb_get_regl(buf, val) gdb_get_reg64(buf, val) #define ldtul_p(addr) ldq_p(addr) -#define ldtul_le_p(addr) ldq_le_p(addr) -#define ldtul_be_p(addr) ldq_be_p(addr) #else #define gdb_get_regl(buf, val) gdb_get_reg32(buf, val) #define ldtul_p(addr) ldl_p(addr) -#define ldtul_le_p(addr) ldl_le_p(addr) -#define ldtul_be_p(addr) ldl_be_p(addr) #endif #endif /* _GDBSTUB_HELPERS_H_ */