psxdma: Fix endian issue in gpuInterrupt()
authorPaul Cercueil <paul@crapouillou.net>
Tue, 24 Oct 2023 17:08:40 +0000 (19:08 +0200)
committernotaz <notasas@gmail.com>
Tue, 24 Oct 2023 20:56:24 +0000 (23:56 +0300)
commitaf16a7aa5a263d0e963105fc032b0405c363a838
treef7c52831b0d3a6a732ac9a7ccdae2e837739aa56
parentec92465a82173aafd1d1c529d526007ff29d3608
psxdma: Fix endian issue in gpuInterrupt()

The HW_DMA2_MADR register contains little-endian data, therefore it
must always be accessed through one of the swap macros.

This fixes the slow DMA linked-list walking on big-endian systems.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
libpcsxcore/psxdma.c