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 18:59:14 +0000 (21:59 +0300)
commitdb6e56b6bfb5bcdacc86150061861a74365331e0
treeef0fb26fbd9472ddb78bdcab1b2d1e2d24b4927e
parent6a131b037d9133d6bffcb8e4e67940fcf069e539
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