mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #1859 from FioraAeterna/fixinterpreterslw
Interpreter: fix slwx
This commit is contained in:
commit
9cada14ebc
@ -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]);
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user