Make sure hardware registers are manipulated as little-endian
authorPaul Cercueil <paul@crapouillou.net>
Fri, 13 Sep 2019 21:01:57 +0000 (23:01 +0200)
committerAsh Logan <ash@heyquark.com>
Mon, 6 Jun 2022 13:04:52 +0000 (23:04 +1000)
commitadb7d7ac1b92eac9ebc408e35d2be60c6339f89b
tree8de5b5f0c70a538f2c9e6860bdb6c9a18f087a13
parentffe97735d2c5683cb3ebc91299c047c417d2322d
Make sure hardware registers are manipulated as little-endian

The hardware registers should be represented in little-endian format.
Therefore, on big-endian systems the values need to be byte-swapped.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
libpcsxcore/gpu.h
libpcsxcore/misc.c
libpcsxcore/psxcounters.c
libpcsxcore/psxdma.c
libpcsxcore/psxhw.c