1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 20:41:45 +01:00

PPU LLVM: Fix STSWI and LSWI

This commit is contained in:
eladash 2019-03-21 21:32:04 +02:00 committed by Ivan
parent f028737db8
commit 3304e3b0b7

View File

@ -3086,6 +3086,7 @@ void PPUTranslator::LSWI(ppu_opcode_t op)
if (--index)
{
addr = m_ir->CreateAdd(addr, m_ir->getInt64(1));
i--;
}
}
@ -3181,7 +3182,7 @@ void PPUTranslator::STSWI(ppu_opcode_t op)
while (index)
{
WriteMemory(addr, m_ir->CreateLShr(buf, 24));
WriteMemory(addr, Trunc(m_ir->CreateLShr(buf, 24), GetType<u8>()));
if (--index)
{