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(-)
--
2.45.2