mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Spaces to tabs
This commit is contained in:
parent
b4a97c99d8
commit
50f2be57f7
8 changed files with 53 additions and 52 deletions
|
@ -290,27 +290,28 @@ inline asmjit::X86Mem spu_recompiler::XmmConst(__m128i data)
|
|||
|
||||
void spu_recompiler::CheckInterruptStatus(spu_opcode_t op)
|
||||
{
|
||||
if (op.d)
|
||||
c->lock().btr(SPU_OFF_8(interrupts_enabled), 0);
|
||||
else if (op.e) {
|
||||
c->lock().bts(SPU_OFF_8(interrupts_enabled), 0);
|
||||
c->mov(*qw0, SPU_OFF_32(ch_event_stat));
|
||||
c->and_(*qw0, SPU_OFF_32(ch_event_mask));
|
||||
c->and_(*qw0, SPU_EVENT_INTR_TEST);
|
||||
c->cmp(*qw0, 0);
|
||||
|
||||
asmjit::Label noInterrupt = c->newLabel();
|
||||
c->je(noInterrupt);
|
||||
c->lock().btr(SPU_OFF_8(interrupts_enabled), 0);
|
||||
c->mov(SPU_OFF_32(srr0), *addr);
|
||||
c->mov(SPU_OFF_32(pc), 0);
|
||||
if (op.d)
|
||||
c->lock().btr(SPU_OFF_8(interrupts_enabled), 0);
|
||||
else if (op.e)
|
||||
{
|
||||
c->lock().bts(SPU_OFF_8(interrupts_enabled), 0);
|
||||
c->mov(*qw0, SPU_OFF_32(ch_event_stat));
|
||||
c->and_(*qw0, SPU_OFF_32(ch_event_mask));
|
||||
c->and_(*qw0, SPU_EVENT_INTR_TEST);
|
||||
c->cmp(*qw0, 0);
|
||||
|
||||
FunctionCall();
|
||||
asmjit::Label noInterrupt = c->newLabel();
|
||||
c->je(noInterrupt);
|
||||
c->lock().btr(SPU_OFF_8(interrupts_enabled), 0);
|
||||
c->mov(SPU_OFF_32(srr0), *addr);
|
||||
c->mov(SPU_OFF_32(pc), 0);
|
||||
|
||||
c->mov(*addr, SPU_OFF_32(srr0));
|
||||
c->bind(noInterrupt);
|
||||
c->unuse(*qw0);
|
||||
}
|
||||
FunctionCall();
|
||||
|
||||
c->mov(*addr, SPU_OFF_32(srr0));
|
||||
c->bind(noInterrupt);
|
||||
c->unuse(*qw0);
|
||||
}
|
||||
}
|
||||
|
||||
void spu_recompiler::InterpreterCall(spu_opcode_t op)
|
||||
|
@ -1038,7 +1039,7 @@ void spu_recompiler::BI(spu_opcode_t op)
|
|||
{
|
||||
c->mov(*addr, SPU_OFF_32(gpr, op.ra, &v128::_u32, 3));
|
||||
c->and_(*addr, 0x3fffc);
|
||||
CheckInterruptStatus(op);
|
||||
CheckInterruptStatus(op);
|
||||
c->jmp(*jt);
|
||||
}
|
||||
|
||||
|
@ -1062,7 +1063,7 @@ void spu_recompiler::IRET(spu_opcode_t op)
|
|||
{
|
||||
c->mov(*addr, SPU_OFF_32(srr0));
|
||||
c->and_(*addr, 0x3fffc);
|
||||
CheckInterruptStatus(op);
|
||||
CheckInterruptStatus(op);
|
||||
c->jmp(*jt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue