Skip to content

RFC hw/ppc: Remove tswap() calls

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/ppc: Replace tswap32() by const_le32()hw/ppc/sam460ex.c hw/ppc/virtex_ml507.c+4 -212 replies
2/3hw/ppc/spapr: Replace tswap64(HPTE) by cpu_to_be64(HPTE)hw/ppc/spapr.c+5 -410 replies
3/3hw/net/xilinx_ethlite: Replace tswap32() by be32_to_cpu()hw/net/xilinx_ethlite.c+5 -57 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH-for-8.0 0/3] hw/ppc: Remove tswap() calls

Hi,

I am trying to remove the tswap() API from system emulation and replace it by more meaningful calls, because tswap depends on the host endianness, and this detail should be irrelevant from the system emulation PoV.

In this RFC series I'm trying to convert the PPC calls.

Any help in understanding what was the original author intention is welcomed :)

Thanks,

Phil.

Philippe Mathieu-Daudé (3):
hw/ppc: Replace tswap32() by const_le32() hw/ppc/spapr: Replace tswap64(HPTE) by cpu_to_be64(HPTE) hw/net/xilinx_ethlite: Replace tswap32() by be32_to_cpu()

 hw/net/xilinx_ethlite.c | 10 +++++-----
 hw/ppc/sam460ex.c       |  3 ++-
 hw/ppc/spapr.c          |  9 +++++----
 hw/ppc/virtex_ml507.c   |  3 ++-
 4 files changed, 14 insertions(+), 11 deletions(-)
Signature · 1 line
2.38.1