{"id":1992856,"url":"http://patchwork.ozlabs.org/api/covers/1992856/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20241004163042.85922-1-philmd@linaro.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20241004163042.85922-1-philmd@linaro.org>","list_archive_url":null,"date":"2024-10-04T16:30:16","name":"[v2,00/25] misc: Use explicit endian LD/ST API","submitter":{"id":85046,"url":"http://patchwork.ozlabs.org/api/people/85046/?format=json","name":"Philippe Mathieu-Daudé","email":"philmd@linaro.org"},"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20241004163042.85922-1-philmd@linaro.org/mbox/","series":[{"id":426623,"url":"http://patchwork.ozlabs.org/api/series/426623/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=426623","date":"2024-10-04T16:30:18","name":"misc: Use explicit endian LD/ST API","version":2,"mbox":"http://patchwork.ozlabs.org/series/426623/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/1992856/comments/","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=nxA9KIXY;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4XKvGT6xrnz1xtH\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  5 Oct 2024 02:32:33 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1swlCp-00043w-8V; Fri, 04 Oct 2024 12:31:03 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1swlCm-00042U-LH\n for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:31:00 -0400","from mail-lf1-x129.google.com ([2a00:1450:4864:20::129])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1swlCj-0005VP-Ll\n for qemu-devel@nongnu.org; Fri, 04 Oct 2024 12:31:00 -0400","by mail-lf1-x129.google.com with SMTP id\n 2adb3069b0e04-5398a26b64fso2383044e87.3\n for <qemu-devel@nongnu.org>; Fri, 04 Oct 2024 09:30:57 -0700 (PDT)","from localhost.localdomain ([91.223.100.150])\n by smtp.gmail.com with ESMTPSA id\n 2adb3069b0e04-539aff281aasm305e87.256.2024.10.04.09.30.47\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 04 Oct 2024 09:30:54 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1728059455; x=1728664255; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=5nyIdscBf9eExt1kzAJJIA/rxjuPVcdO2ELN/HXgCsA=;\n b=nxA9KIXYqC19s8kcDB1MZPLC5n5M7wDvXRaLCGZws4KNByrh/gLWmNVu3Rcmuh/+VQ\n WOKS0NKx3Ij6a8BGC2gIhj500792alM2/ve1XPbNfV/UKhFpqI9QDra27l7Os42mCEa1\n 8QEPfqh+35U8z8wr5R8lDoLlVxzsQI8fFOvt2M1sX7e/8VgMKDnx3lNlGwxstlN/fCo1\n fw56/sGzUHDrGqYBtp2+QL5QehL9V2FX6Ys7K2YFZO2QmHIBlCcgsNzBNzJDKmCZlLC+\n LiHenaaM2A0Azh9HF+LnwmYWSfZDS+2d6Sxp2jeQrSzuVyci5hmtkqOS3ujNNZibqTOJ\n Naag==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1728059455; x=1728664255;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=5nyIdscBf9eExt1kzAJJIA/rxjuPVcdO2ELN/HXgCsA=;\n b=KZjVAFla4dCpuMdsKJStmaykD8j4ttgq9dm6ukWektDjr67k2LulBpl4HsVJJtKOpW\n nsHxLDE8JHWu2ReHbdWqafXSvBXmCwuqycPl2I6GTHOUUy1qFaYdbzV4VskyJh47hK17\n xx33/vY+1E0be4KkQy/drxCmLc3md6D29frt57mLS2cl1fNXjc5huCC2H2VSsoHbOf9I\n oCxd16DRF1JkWLNja8ieERp6r8/GQp/pEK+POLcJDsc1e+1OLmxF2zMlKMVr8KOe1EyP\n zyZ7yERyl4KFVEiPUegyPLTMhWTsUPwjSLMcBlsgZ0eFFhccF4uLPuvm4HnMP5c475hL\n Q9Ag==","X-Gm-Message-State":"AOJu0YybUuTa6Hd5f6EbuoLS7QGu3VYG3yFwG8xZpL+gBMFQQsR63+E0\n gxNEBpnMMi4tUdGTjvoOi9NFBRxnFAGQkmtW5pjQi+p99f0apGLM+7ZWgNGdvhkEWGp7ziRfzAJ\n 9qEeKyA==","X-Google-Smtp-Source":"\n AGHT+IHmjxOjWQa3xJUQaDHEtw0LVQF0onnQXPwHXy/V6NSJ50nhb5B/Ol9t4OvRDYTK4rI87UyR7A==","X-Received":"by 2002:a05:6512:a8f:b0:536:a50a:3c25 with SMTP id\n 2adb3069b0e04-539ab8625dbmr2108527e87.12.1728059454912;\n Fri, 04 Oct 2024 09:30:54 -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,\n Thomas Huth <thuth@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-ppc@nongnu.org,\n\t=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>","Subject":"[PATCH v2 00/25] misc: Use explicit endian LD/ST API","Date":"Fri,  4 Oct 2024 13:30:16 -0300","Message-ID":"<20241004163042.85922-1-philmd@linaro.org>","X-Mailer":"git-send-email 2.45.2","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2a00:1450:4864:20::129;\n envelope-from=philmd@linaro.org; helo=mail-lf1-x129.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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>,\n <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>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"For targets (or HW) which are only built for a particular\nendianness, the generic LD/ST helpers are defined as the\ntarget endianness variant. For example, on big-endian\ntargets, stl_p() is equivalent of stl_be_p().\n\nThis series replaces in bulk these LD/ST calls.\n\nThis is helpful for the single binary project where we\nwant to build a single binary for multiple targets of\ndifferent endianness.\n\nPhilippe Mathieu-Daudé (25):\n  gdbstub/helpers: Have ldtul_p() definition use ldn_p()\n  target/hexagon: Replace ldtul_p() -> ldl_p()\n  target/alpha: Replace ldtul_p() -> ldq_p()\n  target/s390x: Replace ldtul_p() -> ldq_p()\n  gdbstub/helpers: Introduce ldtul_$endian_p() helpers\n  target/alpha: Use explicit little-endian LD/ST API\n  target/hexagon: Use explicit little-endian LD/ST API\n  hw/i386: Use explicit little-endian LD/ST API\n  target/i386: Use explicit little-endian LD/ST API\n  target/avr: Use explicit little-endian LD/ST API\n  linux-user/i386: Use explicit little-endian LD/ST API\n  target/loongarch: Use explicit little-endian LD/ST API\n  target/sh4: Use explicit little-endian LD/ST API\n  target/tricore: Use explicit little-endian LD/ST API\n  target/rx: Use explicit little-endian LD/ST API\n  target/riscv: Use explicit little-endian LD/ST API\n  hw/m68k: Use explicit big-endian LD/ST API\n  target/m68k: Use explicit big-endian LD/ST API\n  hw/sparc: Use explicit big-endian LD/ST API\n  target/sparc: Use explicit big-endian LD/ST API\n  target/hppa: Use explicit big-endian LD/ST API\n  hw/s390x: Use explicit big-endian LD/ST API\n  target/s390x: Use explicit big-endian LD/ST API\n  target/openrisc: Use explicit big-endian LD/ST API\n  hw/ppc/e500: Use explicit big-endian LD/ST API\n\n hw/m68k/bootinfo.h                   |  28 ++---\n include/gdbstub/helpers.h            |   6 +-\n hw/i386/multiboot.c                  |  36 +++---\n hw/i386/x86-common.c                 |  26 ++---\n hw/m68k/mcf5208.c                    |   2 +-\n hw/m68k/next-cube.c                  |   2 +-\n hw/m68k/q800.c                       |   4 +-\n hw/ppc/ppce500_spin.c                |  24 ++--\n hw/s390x/ipl.c                       |   4 +-\n hw/s390x/s390-pci-inst.c             | 166 +++++++++++++--------------\n hw/sparc/leon3.c                     |  42 +++----\n hw/sparc/sun4m.c                     |   6 +-\n hw/sparc64/sun4u.c                   |   6 +-\n linux-user/i386/signal.c             |   4 +-\n target/alpha/gdbstub.c               |   2 +-\n target/avr/gdbstub.c                 |   4 +-\n target/hexagon/gdbstub.c             |  10 +-\n target/hppa/gdbstub.c                |   2 +-\n target/i386/gdbstub.c                |  30 ++---\n target/i386/tcg/sysemu/excp_helper.c |   4 +-\n target/i386/xsave_helper.c           |  32 +++---\n target/loongarch/gdbstub.c           |   8 +-\n target/m68k/gdbstub.c                |   2 +-\n target/m68k/helper.c                 |  10 +-\n target/openrisc/gdbstub.c            |   2 +-\n target/riscv/gdbstub.c               |  14 +--\n target/rx/cpu.c                      |   2 +-\n target/rx/gdbstub.c                  |  24 ++--\n target/s390x/gdbstub.c               |  34 +++---\n target/s390x/ioinst.c                |   2 +-\n target/sh4/gdbstub.c                 |  36 +++---\n target/sparc/gdbstub.c               |   6 +-\n target/tricore/gdbstub.c             |   2 +-\n 33 files changed, 292 insertions(+), 290 deletions(-)"}