X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fpsxhw.c;h=f889a53b36f4867bc6f644dfa504e69baf6d320b;hb=bf58ac4cd633bbd3c40bd7f79f9e00b98e156572;hp=254693e194cbcdebb4a30624492951c5f6c1ddd8;hpb=d6a231b7c91ec99ddacfb2538ae8dc1286b10b82;p=pcsx_rearmed.git 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; }