From: notaz Date: Tue, 29 Aug 2023 00:28:40 +0000 (+0300) Subject: try to unbreak bigendian X-Git-Tag: r24~175 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb444d65d471c40872f7b559c7fe2520bf5ef47;p=pcsx_rearmed.git try to unbreak bigendian always struggling with it libretro/pcsx_rearmed#753 --- diff --git a/libpcsxcore/psxhw.c b/libpcsxcore/psxhw.c index e85d8b5c..8397f391 100644 --- a/libpcsxcore/psxhw.c +++ b/libpcsxcore/psxhw.c @@ -43,7 +43,7 @@ void psxHwReset() { void psxHwWriteIstat(u32 value) { - u32 stat = psxHu16(0x1070) & SWAPu16(value); + u32 stat = psxHu16(0x1070) & value; psxHu16ref(0x1070) = SWAPu16(stat); psxRegs.CP0.n.Cause &= ~0x400; @@ -55,7 +55,7 @@ void psxHwWriteImask(u32 value) { u32 stat = psxHu16(0x1070); psxHu16ref(0x1074) = SWAPu16(value); - if (stat & SWAPu16(value)) { + if (stat & value) { //if ((psxRegs.CP0.n.SR & 0x401) == 0x401) // log_unhandled("irq on unmask @%08x\n", psxRegs.pc); new_dyna_set_event(PSXINT_NEWDRC_CHECK, 1);