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
eliminate event code duplication
[pcsx_rearmed.git]
/
libpcsxcore
/
spu.c
diff --git
a/libpcsxcore/spu.c
b/libpcsxcore/spu.c
index
90d2f4d
..
69d65be
100644
(file)
--- a/
libpcsxcore/spu.c
+++ b/
libpcsxcore/spu.c
@@
-22,6
+22,7
@@
*/
#include "spu.h"
*/
#include "spu.h"
+#include "psxevents.h"
void CALLBACK SPUirq(void) {
psxHu32ref(0x1070) |= SWAPu32(0x200);
void CALLBACK SPUirq(void) {
psxHu32ref(0x1070) |= SWAPu32(0x200);
@@
-29,10
+30,7
@@
void CALLBACK SPUirq(void) {
// spuUpdate
void CALLBACK SPUschedule(unsigned int cycles_after) {
// spuUpdate
void CALLBACK SPUschedule(unsigned int cycles_after) {
- psxRegs.interrupt |= (1 << PSXINT_SPU_UPDATE);
- psxRegs.intCycle[PSXINT_SPU_UPDATE].cycle = cycles_after;
- psxRegs.intCycle[PSXINT_SPU_UPDATE].sCycle = psxRegs.cycle;
- new_dyna_set_event(PSXINT_SPU_UPDATE, cycles_after);
+ set_event(PSXINT_SPU_UPDATE, cycles_after);
}
void spuUpdate() {
}
void spuUpdate() {