mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-28 22:13:24 +00:00
Fix Stswi instruction
This commit is contained in:
parent
5c60a99cc4
commit
34709eb399
@ -1,4 +1,4 @@
|
||||
#ifdef LLVM_AVAILABLE
|
||||
#ifdef LLVM_AVAILABLE
|
||||
|
||||
#include "PPUTranslator.h"
|
||||
#include "PPUThread.h"
|
||||
@ -3115,7 +3115,7 @@ void PPUTranslator::STSWI(ppu_opcode_t op)
|
||||
{
|
||||
if (index > 3)
|
||||
{
|
||||
WriteMemory(GetGpr(reg, 32), addr);
|
||||
WriteMemory(addr, GetGpr(reg, 32));
|
||||
index -= 4;
|
||||
|
||||
if (index)
|
||||
@ -3129,7 +3129,7 @@ void PPUTranslator::STSWI(ppu_opcode_t op)
|
||||
|
||||
while (index)
|
||||
{
|
||||
WriteMemory(m_ir->CreateLShr(buf, 24), addr);
|
||||
WriteMemory(addr, m_ir->CreateLShr(buf, 24));
|
||||
|
||||
if (--index)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user