mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Interpreter: Use Helper_Get_EA_X() for eciwx and ecowx
Cleans up the functions a little.
This commit is contained in:
parent
dc6cc909e5
commit
7bc2830520
@ -386,12 +386,7 @@ void Interpreter::dcbz(UGeckoInstruction _inst)
|
||||
// We just do it instantly from ppc...and hey, it works! :D
|
||||
void Interpreter::eciwx(UGeckoInstruction _inst)
|
||||
{
|
||||
u32 EA, b;
|
||||
if (_inst.RA == 0)
|
||||
b = 0;
|
||||
else
|
||||
b = rGPR[_inst.RA];
|
||||
EA = b + rGPR[_inst.RB];
|
||||
u32 EA = Helper_Get_EA_X(_inst);
|
||||
|
||||
if (!(PowerPC::ppcState.spr[SPR_EAR] & 0x80000000))
|
||||
{
|
||||
@ -408,12 +403,7 @@ void Interpreter::eciwx(UGeckoInstruction _inst)
|
||||
|
||||
void Interpreter::ecowx(UGeckoInstruction _inst)
|
||||
{
|
||||
u32 EA, b;
|
||||
if (_inst.RA == 0)
|
||||
b = 0;
|
||||
else
|
||||
b = rGPR[_inst.RA];
|
||||
EA = b + rGPR[_inst.RB];
|
||||
u32 EA = Helper_Get_EA_X(_inst);
|
||||
|
||||
if (!(PowerPC::ppcState.spr[SPR_EAR] & 0x80000000))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user