Skip to content

overall: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check

Philippe Mathieu-Daudé kvm qemu-arm qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16linux-user/arm: Checkpatch style cleanupslinux-user/arm/nwfpe/fpa11_cpdt.c+35 -310 replies
2/16linux-user/arm: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checklinux-user/arm/nwfpe/double_cpdo.c linux-user/arm/nwfpe/fpa11_cpdt.c+16 -250 replies
3/16ui: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checkui/vdagent.c ui/vnc.c+9 -131 reply
4/16net: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checknet/net.c+6 -80 replies
5/16disas: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checkdisas/disas-host.c+1 -50 replies
6/16hw/core/loader: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checkhw/core/loader.c+3 -21 reply
7/16hw/display: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checkhw/display/artist.c hw/display/vga.c hw/display/virtio-gpu-gl.c +2 more+25 -291 reply
8/16hw/virtio: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checkhw/virtio/vhost.c include/hw/virtio/virtio-access.h+4 -92 replies
9/16target/alpha: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/alpha/translate.c+6 -50 replies
10/16target/arm: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/arm/cpu.h target/arm/tcg/sve_helper.c target/arm/tcg/translate-a64.h +3 more+23 -360 replies
11/16target/mips: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/mips/tcg/msa_helper.c+444 -4450 replies
12/16target/ppc: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/ppc/arch_dump.c target/ppc/int_helper.c target/ppc/kvm.c +3 more+47 -592 replies
13/16target/riscv: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/riscv/insn_trans/trans_rvv.c.inc target/riscv/vector_helper.c+24 -241 reply
14/16target/s390x: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/s390x/tcg/translate.c target/s390x/tcg/translate_vx.c.inc+6 -61 reply
15/16target/sparc: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checktarget/sparc/vis_helper.c+9 -90 replies
16/16util/bitmap: Replace HOST_BIG_ENDIAN #ifdef with runtime if() checkutil/bitmap.c+7 -120 replies

Reviews trailers per patch

6 of 16 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandMarc-André LureauAkihiko OdakiAlistair FrancisHarsh Prateek Bora
1/16
2/16
3/16R-b
4/16
5/16
6/16R-b
7/16R-b
8/16
9/16
10/16
11/16
12/16R-b
13/16R-b
14/16R-b
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/16] overall: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check

Replace compile-time #ifdef with a runtime check to ensure all code paths are built and tested. This reduces build-time configuration complexity and improves maintainability.

No functional change intended.

Philippe Mathieu-Daudé (16):
linux-user/arm: Checkpatch style cleanups
linux-user/arm: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check
ui: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check
net: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check
disas: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check hw/core/loader: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check hw/display: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check hw/virtio: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/alpha: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/arm: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/mips: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/ppc: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/riscv: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/s390x: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check target/sparc: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check util/bitmap: Replace HOST_BIG_ENDIAN #ifdef with runtime if() check

 include/hw/virtio/virtio-access.h       |   6 +-
 include/hw/virtio/virtio-gpu-bswap.h    |   6 +-
 target/arm/cpu.h                        |   8 +-
 target/arm/tcg/translate-a64.h          |   5 +-
 disas/disas-host.c                      |   6 +-
 hw/core/loader.c                        |   5 +-
 hw/display/artist.c                     |  12 +-
 hw/display/vga.c                        |  20 +-
 hw/display/virtio-gpu-gl.c              |   8 +-
 hw/display/virtio-gpu-rutabaga.c        |   8 +-
 hw/virtio/vhost.c                       |   7 +-
 linux-user/arm/nwfpe/double_cpdo.c      |  12 +-
 linux-user/arm/nwfpe/fpa11_cpdt.c       |  77 +-
 net/net.c                               |  14 +-
 target/alpha/translate.c                |  11 +-
 target/arm/tcg/sve_helper.c             |  10 +-
 target/arm/tcg/translate-sve.c          |  22 +-
 target/arm/tcg/translate-vfp.c          |   8 +-
 target/arm/tcg/translate.c              |   6 +-
 target/mips/tcg/msa_helper.c            | 889 ++++++++++++------------
 target/ppc/arch_dump.c                  |   9 +-
 target/ppc/int_helper.c                 |  28 +-
 target/ppc/kvm.c                        |  25 +-
 target/riscv/vector_helper.c            |  32 +-
 target/s390x/tcg/translate.c            |   6 +-
 target/sparc/vis_helper.c               |  18 +-
 ui/vdagent.c                            |  16 +-
 ui/vnc.c                                |   6 +-
 util/bitmap.c                           |  19 +-
 target/ppc/translate/vmx-impl.c.inc     |  14 +-
 target/ppc/translate/vsx-impl.c.inc     |   6 +-
 target/riscv/insn_trans/trans_rvv.c.inc |  16 +-
 target/s390x/tcg/translate_vx.c.inc     |   6 +-
 tcg/ppc/tcg-target.c.inc                |  24 +-
 34 files changed, 656 insertions(+), 709 deletions(-)
Signature · 1 line
2.51.0