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
+2 -1
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)
{