PPU LLVM: Fix LWSYNC according to cellSpursWakeup

This commit is contained in:
Eladash 2023-05-21 15:07:17 +03:00 committed by Ivan
parent 300701a06b
commit 1c36156594
1 changed files with 2 additions and 2 deletions

View File

@ -3293,8 +3293,8 @@ void PPUTranslator::LFSUX(ppu_opcode_t op)
void PPUTranslator::SYNC(ppu_opcode_t op)
{
// sync: Full seq cst barrier
// lwsync: Acq/Release barrier
m_ir->CreateFence(op.l10 ? AtomicOrdering::AcquireRelease : AtomicOrdering::SequentiallyConsistent);
// lwsync: Acq/Release barrier (but not really it seems from observing libsre.sprx)
m_ir->CreateFence(op.l10 && false ? AtomicOrdering::AcquireRelease : AtomicOrdering::SequentiallyConsistent);
}
void PPUTranslator::LFDX(ppu_opcode_t op)