mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Fix Stswi instruction
This commit is contained in:
parent
5c60a99cc4
commit
34709eb399
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue