X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxdma.c;h=cb84fbccfc6ce9c807de7796a60e319fcf0f8ce9;hp=03ee563913ad9402a1b62af612b218b0d7689dc6;hb=3968e69e7fa8f9cb0d44ac79477d5929b9649271;hpb=fc4803bdc2c9840a007c60e422fb0531107b80f2 diff --git a/libpcsxcore/psxdma.c b/libpcsxcore/psxdma.c index 03ee5639..cb84fbcc 100644 --- a/libpcsxcore/psxdma.c +++ b/libpcsxcore/psxdma.c @@ -122,7 +122,8 @@ static u32 gpuDmaChainSize(u32 addr) { // next 32-bit pointer addr = psxMu32( addr & ~0x3 ) & 0xffffff; size += 1; - } while (addr != 0xffffff); + } while (!(addr & 0x800000)); // contrary to some documentation, the end-of-linked-list marker is not actually 0xFF'FFFF + // any pointer with bit 23 set will do. return size; }