Skip to content

Commit

Permalink
Merge pull request #1859 from FioraAeterna/fixinterpreterslw
Browse files Browse the repository at this point in the history
Interpreter: fix slwx
  • Loading branch information
Sonicadvance1 committed Jan 10, 2015
2 parents cdf15bb + 55b509b commit 9cada14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -329,7 +329,7 @@ void Interpreter::orcx(UGeckoInstruction _inst)
void Interpreter::slwx(UGeckoInstruction _inst)
{
u32 amount = rGPR[_inst.RB];
rGPR[_inst.RA] = (amount & 0x20) ? 0 : rGPR[_inst.RS] << amount;
rGPR[_inst.RA] = (amount & 0x20) ? 0 : rGPR[_inst.RS] << (amount & 0x1f);

if (_inst.Rc)
Helper_UpdateCR0(rGPR[_inst.RA]);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
Expand Up @@ -1680,7 +1680,7 @@ void Jit64::slwx(UGeckoInstruction inst)
if (gpr.R(b).IsImm() && gpr.R(s).IsImm())
{
u32 amount = (u32)gpr.R(b).offset;
gpr.SetImmediate32(a, (amount & 0x20) ? 0 : (u32)gpr.R(s).offset << amount);
gpr.SetImmediate32(a, (amount & 0x20) ? 0 : (u32)gpr.R(s).offset << (amount & 0x1f));
if (inst.Rc)
ComputeRC(gpr.R(a));
}
Expand Down

0 comments on commit 9cada14

Please sign in to comment.