X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=libpcsxcore%2Fpsxdma.c;h=d7c4caecece9d5ecd3ffade8bb58146d0b3da729;hb=d0d2939d7a485bbe97017e5ae20b504d225c09d3;hp=8a2b9a937d89c588e4673efec57e1e29ec6245e7;hpb=7df2c03cc775292b1bcc2b2eb6486e2ae83faa87;p=pcsx_rearmed.git diff --git a/libpcsxcore/psxdma.c b/libpcsxcore/psxdma.c index 8a2b9a93..d7c4caec 100644 --- a/libpcsxcore/psxdma.c +++ b/libpcsxcore/psxdma.c @@ -120,7 +120,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; }