From bf58ac4cd633bbd3c40bd7f79f9e00b98e156572 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 13 Oct 2023 18:56:41 +0300 Subject: [PATCH] bigendian again libretro/pcsx_rearmed#777 --- libpcsxcore/psxhw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/psxhw.c b/libpcsxcore/psxhw.c index 254693e1..f889a53b 100644 --- a/libpcsxcore/psxhw.c +++ b/libpcsxcore/psxhw.c @@ -94,11 +94,11 @@ u32 psxHwReadGpuSR(void) // meh2, syncing for img bit, might want to avoid it.. gpuSyncPluginSR(); - v = HW_GPU_STATUS; + v = SWAP32(HW_GPU_STATUS); // XXX: because of large timeslices can't use hSyncCount, using rough // approximization instead. Perhaps better use hcounter code here or something. - if (hSyncCount < 240 && (HW_GPU_STATUS & PSXGPU_ILACE_BITS) != PSXGPU_ILACE_BITS) + if (hSyncCount < 240 && (v & PSXGPU_ILACE_BITS) != PSXGPU_ILACE_BITS) v |= PSXGPU_LCF & (psxRegs.cycle << 20); return v; } -- 2.39.5