notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #502 from justinweiss/restrict-threaded-rendering-drivers
[pcsx_rearmed.git]
/
libpcsxcore
/
psxhw.c
diff --git
a/libpcsxcore/psxhw.c
b/libpcsxcore/psxhw.c
index
1f85278
..
c90f8c7
100644
(file)
--- a/
libpcsxcore/psxhw.c
+++ b/
libpcsxcore/psxhw.c
@@
-431,7
+431,7
@@
void psxHwWrite16(u32 add, u16 value) {
#endif
if (Config.Sio) psxHu16ref(0x1070) |= SWAPu16(0x80);
if (Config.SpuIrq) psxHu16ref(0x1070) |= SWAPu16(0x200);
#endif
if (Config.Sio) psxHu16ref(0x1070) |= SWAPu16(0x80);
if (Config.SpuIrq) psxHu16ref(0x1070) |= SWAPu16(0x200);
- psxHu16ref(0x1070) &= SWAPu16(
(psxHu16(0x1074) & value)
);
+ psxHu16ref(0x1070) &= SWAPu16(
value
);
return;
case 0x1f801074:
return;
case 0x1f801074:
@@
-493,7
+493,7
@@
void psxHwWrite16(u32 add, u16 value) {
default:
if (add>=0x1f801c00 && add<0x1f801e00) {
default:
if (add>=0x1f801c00 && add<0x1f801e00) {
-
SPU_writeRegister(add, valu
e);
+
SPU_writeRegister(add, value, psxRegs.cycl
e);
return;
}
return;
}
@@
-546,7
+546,7
@@
void psxHwWrite32(u32 add, u32 value) {
#endif
if (Config.Sio) psxHu32ref(0x1070) |= SWAPu32(0x80);
if (Config.SpuIrq) psxHu32ref(0x1070) |= SWAPu32(0x200);
#endif
if (Config.Sio) psxHu32ref(0x1070) |= SWAPu32(0x80);
if (Config.SpuIrq) psxHu32ref(0x1070) |= SWAPu32(0x200);
- psxHu32ref(0x1070) &= SWAPu32(
(psxHu32(0x1074) & value)
);
+ psxHu32ref(0x1070) &= SWAPu32(
value
);
return;
case 0x1f801074:
#ifdef PSXHW_LOG
return;
case 0x1f801074:
#ifdef PSXHW_LOG
@@
-747,8
+747,8
@@
void psxHwWrite32(u32 add, u32 value) {
default:
// Dukes of Hazard 2 - car engine noise
if (add>=0x1f801c00 && add<0x1f801e00) {
default:
// Dukes of Hazard 2 - car engine noise
if (add>=0x1f801c00 && add<0x1f801e00) {
- SPU_writeRegister(add, value&0xffff);
- SPU_writeRegister(add + 2, value>>16);
+ SPU_writeRegister(add, value&0xffff
, psxRegs.cycle
);
+ SPU_writeRegister(add + 2, value>>16
, psxRegs.cycle
);
return;
}
return;
}