mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
SPU Interrupt Enable Status implemented
SPU Interrupts are still NOT implemented
This commit is contained in:
parent
1519a2b468
commit
5bd83516ba
7 changed files with 121 additions and 79 deletions
|
|
@ -224,9 +224,15 @@ bool RawSPUThread::WriteReg(const u32 addr, const u32 value)
|
|||
|
||||
void RawSPUThread::Task()
|
||||
{
|
||||
PC = npc.exchange(0) & ~3;
|
||||
// get next PC and SPU Interrupt status
|
||||
PC = npc.exchange(0);
|
||||
|
||||
set_interrupt_status((PC & 1) != 0);
|
||||
|
||||
PC &= 0x3FFFC;
|
||||
|
||||
SPUThread::Task();
|
||||
|
||||
npc.store(PC | 1);
|
||||
// save next PC and current SPU Interrupt status
|
||||
npc.store(PC | ((ch_event_stat.load() & SPU_EVENT_INTR_ENABLED) != 0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue