mbox series

[0/3] hw/ppc: Replace tswap32() by stl_endian_p()

Message ID 20240930125323.54671-1-philmd@linaro.org
Headers show
Series hw/ppc: Replace tswap32() by stl_endian_p() | expand

Message

Philippe Mathieu-Daudé Sept. 30, 2024, 12:53 p.m. UTC
Expose ppc_cpu_is_big_endian(), then use it calling the target
agnostic stl_endian_p() method, removing the use of the target
specific tswap32() method.

Philippe Mathieu-Daudé (3):
  target/ppc: Expose ppc_cpu_is_big_endian() prototype in 'cpu.h'
  hw/ppc/sam460ex: Replace tswap32() by stl_endian_p()
  hw/ppc/virtex_ml507: Replace tswap32() by stl_endian_p()

 target/ppc/cpu.h      | 2 ++
 hw/ppc/sam460ex.c     | 5 +++--
 hw/ppc/virtex_ml507.c | 2 +-
 target/ppc/cpu_init.c | 2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)