From: gameblabla Date: Thu, 19 Aug 2021 04:26:28 +0000 (+0200) Subject: [SPU] Emulate SPUSTAT[5:0] as a mirror of SPUCNT[5:0] X-Git-Tag: r24l~570^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acc08532b63d25e56fd291c680130e89d413b897;p=pcsx_rearmed.git [SPU] Emulate SPUSTAT[5:0] as a mirror of SPUCNT[5:0] Fix is from PCSX-Redux : grumpycoders/pcsx-redux@4e905d7 I have tested the fix against Loonies 8192 (a PSn00bSDK made homebrew game) and it no longer locks up during loading. Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> --- diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index bb64658d..d508c068 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -315,7 +315,7 @@ unsigned short CALLBACK SPUreadRegister(unsigned long reg) return spu.spuCtrl; case H_SPUstat: - return spu.spuStat; + return (spu.spuStat & ~0x3F) | (spu.spuCtrl & 0x3F); case H_SPUaddr: return (unsigned short)(spu.spuAddr>>3);