mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12: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 "PPUTranslator.h"
|
||||||
#include "PPUThread.h"
|
#include "PPUThread.h"
|
||||||
|
@ -3115,7 +3115,7 @@ void PPUTranslator::STSWI(ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
if (index > 3)
|
if (index > 3)
|
||||||
{
|
{
|
||||||
WriteMemory(GetGpr(reg, 32), addr);
|
WriteMemory(addr, GetGpr(reg, 32));
|
||||||
index -= 4;
|
index -= 4;
|
||||||
|
|
||||||
if (index)
|
if (index)
|
||||||
|
@ -3129,7 +3129,7 @@ void PPUTranslator::STSWI(ppu_opcode_t op)
|
||||||
|
|
||||||
while (index)
|
while (index)
|
||||||
{
|
{
|
||||||
WriteMemory(m_ir->CreateLShr(buf, 24), addr);
|
WriteMemory(addr, m_ir->CreateLShr(buf, 24));
|
||||||
|
|
||||||
if (--index)
|
if (--index)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue