From: notaz Date: Fri, 13 Oct 2023 15:56:41 +0000 (+0300) Subject: bigendian again X-Git-Tag: r24l~131 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51e7884dc9a1d04f852cb3a12d2033a4d930024;p=pcsx_rearmed.git bigendian again libretro/pcsx_rearmed#777 --- 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; }