Skip to content

hw: Add ld/st_endian() APIs

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13qemu/bswap: Introduce ld/st_endian_p() APIinclude/qemu/bswap.h+19 -06 replies
2/13hw/virtio/virtio-access: Use the ld/st_endian_p() APIinclude/hw/virtio/virtio-access.h+6 -301 reply
3/13target/arm/ptw: Use the ld/st_endian_p() APItarget/arm/ptw.c+4 -151 reply
4/13hw/mips: Pass BlCpuCfg argument to bootloader APIhw/mips/bootloader.c hw/mips/boston.c hw/mips/fuloong2e.c +2 more+109 -831 reply
5/13hw/mips: Add cpu_is_bigendian field to BlCpuCfg structurehw/mips/bootloader.c hw/mips/boston.c hw/mips/fuloong2e.c +2 more+9 -81 reply
6/13tests/tcg/plugins: Use the ld/st_endian_p() APItests/tcg/plugins/mem.c+6 -182 replies
7/13hw/xtensa/xtfpga: Remove TARGET_BIG_ENDIAN #ifdef'ryhw/xtensa/xtfpga.c+7 -54 replies
8/13hw/xtensa/xtfpga: Replace memcpy()+tswap32() by stl_endian_p()hw/xtensa/xtfpga.c+2 -49 replies
9/13exec/memory_ldst_phys: Introduce ld/st_endian_phys() APIinclude/exec/memory_ldst_phys.h.inc+66 -03 replies
10/13hw/virtio/virtio-access: Use ld/st_endian_phys() APIinclude/hw/virtio/virtio-access.h+5 -221 reply
11/13hw/pci/pci_device: Add PCI_DMA_DEFINE_LDST_END() macroinclude/hw/pci/pci_device.h+7 -61 reply
12/13hw/pci/pci_device: Introduce ld/st_endian_pci_dma() APIinclude/hw/pci/pci_device.h+23 -12 replies
13/13hw/net/tulip: Use ld/st_endian_pci_dma() APIhw/net/tulip.c+10 -222 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchThomas HuthPierrick BouvierAlex Bennée
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b A-b
7/13R-b R-b
8/13R-b
9/13R-b
10/13R-b
11/13R-b
12/13R-b
13/13R-b

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

Read the v1 thread

Cover letter [PATCH 00/13] hw: Add ld/st_endian() APIs

In preparation of heterogeneous machines, remove knowledge of the target endianness in generic hw/ code. Move it to the machine level.

Philippe Mathieu-Daudé (13):
qemu/bswap: Introduce ld/st_endian_p() API hw/virtio/virtio-access: Use the ld/st_endian_p() API target/arm/ptw: Use the ld/st_endian_p() API hw/mips: Pass BlCpuCfg argument to bootloader API hw/mips: Add cpu_is_bigendian field to BlCpuCfg structure tests/tcg/plugins: Use the ld/st_endian_p() API hw/xtensa/xtfpga: Remove TARGET_BIG_ENDIAN #ifdef'ry hw/xtensa/xtfpga: Replace memcpy()+tswap32() by stl_endian_p() exec/memory_ldst_phys: Introduce ld/st_endian_phys() API hw/virtio/virtio-access: Use ld/st_endian_phys() API hw/pci/pci_device: Add PCI_DMA_DEFINE_LDST_END() macro hw/pci/pci_device: Introduce ld/st_endian_pci_dma() API hw/net/tulip: Use ld/st_endian_pci_dma() API

 include/hw/mips/bootloader.h        |  18 +++-
 include/hw/pci/pci_device.h         |  35 +++++--
 include/hw/virtio/virtio-access.h   |  63 ++----------
 include/qemu/bswap.h                |  19 ++++
 include/exec/memory_ldst_phys.h.inc |  66 ++++++++++++
 hw/mips/bootloader.c                | 152 +++++++++++++++-------------
 hw/mips/boston.c                    |   9 +-
 hw/mips/fuloong2e.c                 |   3 +-
 hw/mips/malta.c                     |  21 ++--
 hw/net/tulip.c                      |  32 ++----
 hw/xtensa/xtfpga.c                  |  18 ++--
 target/arm/ptw.c                    |  19 +---
 tests/tcg/plugins/mem.c             |  24 ++---
 13 files changed, 269 insertions(+), 210 deletions(-)
Signature · 1 line
2.45.2