mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
PPU LLVM: Fix STSWI and LSWI
This commit is contained in:
parent
f028737db8
commit
3304e3b0b7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue