From patchwork Fri Oct 4 16:30:17 2024 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: 832744 Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp868731wra; Fri, 4 Oct 2024 09:32:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXCmcPVHvdu/a2h/KoMuo/euB3hcNscYPo/BXpSCvc2InroJ/PnXWJwPS2nAuI2/zoUxG1YXg==@linaro.org X-Google-Smtp-Source: AGHT+IFBeeVszXnr9vO5TfeShlBNev7wreOzTYlqG6NtqzW/MbzObm+gh0oV+k21hl6APivDdBxl X-Received: by 2002:a05:6122:318b:b0:4fc:eda5:6369 with SMTP id 71dfb90a1353d-50c8618590amr2430527e0c.3.1728059558910; Fri, 04 Oct 2024 09:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728059558; cv=none; d=google.com; s=arc-20240605; b=g+cXY22u66c0k5r7ACgui/i6rABs8tJIgc8ofY9hVg6oAlITi9+EG2/MWUnCVwUAt5 bXA2I5tKC2xfUbwpXhsuVhjo7141jV3QpvB59GRaEGhPoZHsOKK/Fbzw8WQhugGAKj42 2GBi1VmzPo4SCUKSyMcX2mW0wBhRN8pE4QSdljCmGO3LaWTTJLOp5JOLHfEhEZLvEtA+ YBhUg3YoPEg2wKMj1lLU1tYk/7DbXVLd8WUmfw4tlR8eVrQ4l5WJie1mo97982HeJNKH 2nuLqp+xEFmuWP5lZm2YnNBYnRt7pvjuKZjjRU8VrTuwtOPRfVnrFdnS367ca1mj9nN3 LgYg== 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=HIUgZUCWAt295BVKONLExnXwYaPBthL2sBqrxui45VA=; fh=Cyx8393Oz+CWhBBtvLnsw/Ha6TQ3OyuB9akIVJXTJlY=; b=RHoKSyW3k9+MQbcWKrUovGx1G7ceofbXeW+ibKzz761d/oD93nCdOP1UN7gP0N3NFI iQaglDju8vDbmZK3cOq08Bn71mKFwPUFhC5eNP8/lS8yoCxJyErEJBmxYvkadWYE0pYa SEvtoN+RpUNdQLQsiIQDIhsjMih4f2z2Ckx1eA6pO9VA1CeOFKdrcI9ftJKZl6vd94Lu blVoGsIBspGe6/O9Jjx9LmjfElLELKlJttn9ApUAapKODJoTapR2kJAscmpfOgVPboCh MIvuAMpd9HV7plP/zd3SzGeJqMHPMz6yKJTr4/C4xbsaPd3/6W9Vv9yj4V3bXDFHPT5u ysYA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qq1/z5Ot"; 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 71dfb90a1353d-50c9ad76616si17365e0c.87.2024.10.04.09.32.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Oct 2024 09:32:38 -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="qq1/z5Ot"; 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 1swlD2-00048y-8x; Fri, 04 Oct 2024 12:31:16 -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 1swlCz-00046l-GF for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:31:15 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swlCw-0005Xz-VS for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:31:13 -0400 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-53993c115cfso3064432e87.2 for ; Fri, 04 Oct 2024 09:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728059469; x=1728664269; 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=HIUgZUCWAt295BVKONLExnXwYaPBthL2sBqrxui45VA=; b=qq1/z5OtvKGnEznaw0x37LTPR2GJqXXhuk3wPvRo1alVfjT89UjcYNvSLYX1IBHoRn GPYjH+2d4LDwE63m+ZQfsfF+ZYOaDufXfzZa8UjcdHq9VnQYS6LFRlmhrOnEfDhmd117 eZKxl4ZzEUc1O3pvycSzhFKlXrPOW7hmjgIvgsavCzMYbBtpO9bOgjzmAJuyZe8gb9tV MUhBu6rn1XdkzGlN9fclu3mR8SlbBGgUPq/fPbrVk6dvWYfKJzKeo+TskIvML2WKBgOL YoCai0yJVz3KELofV7ENyRNg78JncpVb3g4EL5M7rY0mtXkp4bu3C9Q86YFJjqOaVf9X yq1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728059469; x=1728664269; 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=HIUgZUCWAt295BVKONLExnXwYaPBthL2sBqrxui45VA=; b=smOx3wLPVDX1ZPGADeHl92fnt0ehmh8LXYTAJZAOOwqMvBYNPmhXgA+yTjLrBgM/kO UXJvjq4m07GGIv0PHpMLMvqI4SA/DdFTixXQFmhYHgKuV8PuC/54YmPXCjxYZiufjKzm 01TjbVc1zQXQtEBqZAV8OexsG9bqbqzgH33MzXqveTz3Xd3Htj+Y1wH7SNP3rGhvyaGC y3fWEwWJm8nRx/29qCltPifjJdj+3wOjQEtXi687kl3kBGSF//2ECPJWlC7lbglgJ1pc sj8SYrvir4H4pDSnfgiIIRguhMjrykUcATVg5UapHNxHovzqTTR77wIiguL5+8UjRPRP QTPw== X-Gm-Message-State: AOJu0YwKDaiQ+59dU/kyfkkJCVuh/UsOZBimbY5DLdrurpY7Fv5psagS uE/cZRiLKfeKehOmSt54kP24HUj5xrCZ3ONmiGdG3ohk+btSbBiUkJ3OFc00dgJ1AB26t0ePMSR pxO7N4A== X-Received: by 2002:a05:6512:31cc:b0:539:a3cd:97cb with SMTP id 2adb3069b0e04-539ab9de441mr2264190e87.43.1728059468759; Fri, 04 Oct 2024 09:31:08 -0700 (PDT) Received: from localhost.localdomain ([91.223.100.150]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539afec1157sm1716e87.3.2024.10.04.09.31.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Oct 2024 09:31:08 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Thomas Huth , Richard Henderson , Pierrick Bouvier , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 01/25] gdbstub/helpers: Have ldtul_p() definition use ldn_p() Date: Fri, 4 Oct 2024 13:30:17 -0300 Message-ID: <20241004163042.85922-2-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241004163042.85922-1-philmd@linaro.org> References: <20241004163042.85922-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=philmd@linaro.org; helo=mail-lf1-x130.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=unavailable 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 Use ldn_p(TARGET_LONG_SIZE) instead of ldl_p() / ldq_p(). Signed-off-by: Philippe Mathieu-Daudé --- include/gdbstub/helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h index 26140ef1ac0..fd83e366a51 100644 --- a/include/gdbstub/helpers.h +++ b/include/gdbstub/helpers.h @@ -94,10 +94,10 @@ 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) #else #define gdb_get_regl(buf, val) gdb_get_reg32(buf, val) -#define ldtul_p(addr) ldl_p(addr) #endif +#define ldtul_p(addr) ldn_p(addr, TARGET_LONG_SIZE) + #endif /* _GDBSTUB_HELPERS_H_ */