Message ID | 20241004163042.85922-7-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp869482wra; Fri, 4 Oct 2024 09:34:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVpmUMlTz9NiNihumCF3KWefwFiuVtxAs2dKicTsaVw7W1xjMOI/NN8P+5qidn743l+52Q6Fw==@linaro.org X-Google-Smtp-Source: AGHT+IHHWWbet9u4wpxlP06LJaZP2QTEEVFJJAzFrqkmLe+WIvpOE9E7eoA6T7/sXU6I4FFG7Bek X-Received: by 2002:a05:6214:4611:b0:6cb:20b6:f39a with SMTP id 6a1803df08f44-6cb9a2f53e5mr43101496d6.13.1728059642144; Fri, 04 Oct 2024 09:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728059642; cv=none; d=google.com; s=arc-20240605; b=LuNvxByeiAbzMbfubTF0HzVYQKEDRuTkT/JDSddeQZDUH0lZRfIgHHx0jv2aUmM8Kp 0sgZhadZROuV+qtY3LB1FkxtgzYuH521BlWYax6bb1kL94WAKQou2bsi8R1+YY9ulfr2 0X5UgXQ7cmncD7lfHa9qpOlYBrdtT+P3Nan5qECx+JN7nZZrTQaGlTHbk8Gmxcg6HpGz rJsHzJmqH8ubolJrU25dDrpzAPXVvmhISq5wLn4rH2saGJ/Edl6AIT5mV09LmbjqiQ6H S/NpHOyZOFrzC1A/oa0UTF/jE8wWKolPCe5YnKGOODAuE/LG74gDixFCmkrRsFgQV2Dm 69gg== 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=QzpcifQjg9M7Tjl4Y4YKKldff3x1a+0LoVxsWg9JdC4=; fh=Cyx8393Oz+CWhBBtvLnsw/Ha6TQ3OyuB9akIVJXTJlY=; b=N3msmh5bNUslsWVgR/kCt0oZs3Z7e6QDZni63cQ2SdGAZvEz2ER0RdVSIVepf8uSJ0 0VSpzbrxZCsOE/KAUeb0yuyAbnytLqQPaX2GUjuZZCIPZ67tUI+OmOQkdAyJB4LuwXm8 ddJ64LfoPpvZ1+HrCYO2RYHx/exXv3zn+qmZUvlDargCwjZ69BOEXEAnk/8D11FWGS2w j7V3udxhrk4CtmUU8UfKTv6mK+UGuPMkRswa+lWq59cbtmhnAPOCCn8c06e8nU2vYdwM /nT60Ft3R0N2s0/iyPsLs2runO4V6N19iHInlVYuXasfSUGAhbCfb9pyoJC97ZUYXeVw ExMQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R32ISY0a; 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-6cba4773612si1444706d6.391.2024.10.04.09.34.01 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Oct 2024 09:34:02 -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=R32ISY0a; 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 1swlEM-0005uh-Bw; Fri, 04 Oct 2024 12:32:38 -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 1swlEC-0005gG-NG for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:32:34 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) 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 1swlE9-0005kj-W8 for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:32:28 -0400 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2fac63abf63so25047911fa.1 for <qemu-devel@nongnu.org>; Fri, 04 Oct 2024 09:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728059542; x=1728664342; 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=QzpcifQjg9M7Tjl4Y4YKKldff3x1a+0LoVxsWg9JdC4=; b=R32ISY0a9VYrEpZe/73+yuht4TWKcVQ7NYJ0QKDbfHpJy/297pFRbhFfsnUiQqfSRD zvJSqDNyZXKBY8r3bctqFslhmxxdTl9bGT86tuxrNEQv3xLf01zrCPXiuwhuYoZcfqUi bTwefUDxfRFb69kEkedgLRBkQ6SD2wq38giNCNM0mxftTDKSc6GNpTvJIw7GgEWld6mZ oJadFK2DW10/T0UH8CAAsBFsnVWmgBKUvcVVHwyt6dDNaitvqqTISDaK3ONmbwTsb/9s /Ka9ns2ZL67E00Cu9WWGlPOPO7zJezWbeK48ZY8FNjipG3WKtxPoO6ZuLK+lclL8Daw0 WdZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728059542; x=1728664342; 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=QzpcifQjg9M7Tjl4Y4YKKldff3x1a+0LoVxsWg9JdC4=; b=v0WtcJmZTd/niV5nINO2K/IzJyzeYI2j2CpPKLwpiL3JoDNDoXaI0hNLiDqn3rZYXx ybZobGzrxGgMqoCPkYcIn9bWTcFYRzUhBdNy/rXrMmAlO2vO+AjVj7zEURYYTMm+Nrt4 BNAHG7SkXpg4UE+PEqkYr+KIhV8cG4ssV1RCfT1Qfl5QasQdrdTkOHJNv+i+9YxejrzR iD9Ei2UdZwLKsvsZi/d4ei0eCHWayrNXar4F+6KI6Bk0esZnh0GnzA23NjNjWdVvTknu blluSa3XrzYkXYMFgzrsA2yWYuLqwOWuHaDFos4bPsfwio1JEHKi/2204hWvD2wDFSn7 xL3w== X-Gm-Message-State: AOJu0Yw9caXwOxctpnRTxCuw6x+j3tJRgZq7D+Uu/Q7qt7geu7nZsyty 65wO350KT8bcXNAfL5DaJgDzF425XiFgPNmjZgG56bH9nAjNJJkXGJJPDC2FiWSfb71s1zfnZlk GtEming== X-Received: by 2002:a2e:a543:0:b0:2fa:d177:13e6 with SMTP id 38308e7fff4ca-2faf3c416f8mr18290571fa.21.1728059542529; Fri, 04 Oct 2024 09:32:22 -0700 (PDT) Received: from localhost.localdomain ([91.223.100.150]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2faf9b3374bsm195171fa.117.2024.10.04.09.32.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Oct 2024 09:32:21 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Thomas Huth <thuth@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH v2 06/25] target/alpha: Use explicit little-endian LD/ST API Date: Fri, 4 Oct 2024 13:30:22 -0300 Message-ID: <20241004163042.85922-7-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=philmd@linaro.org; helo=mail-lj1-x22b.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: <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 |
misc: Use explicit endian LD/ST API
|
expand
|
On 10/4/24 09:30, Philippe Mathieu-Daudé wrote: > The Alpha architecture uses little endianness. Directly use > the little-endian LD/ST API. > > Mechanical change using: > > $ end=le; \ > for acc in uw w l q tul; do \ > sed -i -e "s/ld${acc}_p(/ld${acc}_${end}_p(/" \ > -e "s/st${acc}_p(/st${acc}_${end}_p(/" \ > $(git grep -wlE '(ld|st)t?u?[wlq]_p' target/alpha/); \ > done > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > target/alpha/gdbstub.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/target/alpha/gdbstub.c b/target/alpha/gdbstub.c index bf5091c2a6e..1a7e2dd9202 100644 --- a/target/alpha/gdbstub.c +++ b/target/alpha/gdbstub.c @@ -59,7 +59,7 @@ int alpha_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) int alpha_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) { CPUAlphaState *env = cpu_env(cs); - target_ulong tmp = ldq_p(mem_buf); + target_ulong tmp = ldq_le_p(mem_buf); CPU_DoubleU d; switch (n) {
The Alpha architecture uses little endianness. Directly use the little-endian LD/ST API. Mechanical change using: $ end=le; \ for acc in uw w l q tul; do \ sed -i -e "s/ld${acc}_p(/ld${acc}_${end}_p(/" \ -e "s/st${acc}_p(/st${acc}_${end}_p(/" \ $(git grep -wlE '(ld|st)t?u?[wlq]_p' target/alpha/); \ done Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/alpha/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)