Fixing bad EA write order.

This commit is contained in:
Ben Vanik 2013-05-26 17:49:37 -07:00
parent a6db12b48f
commit a09170b2c6
1 changed files with 1 additions and 1 deletions

View File

@ -139,9 +139,9 @@ XEEMITTER(ldux, 0x7C00006A, X )(X64Emitter& e, X86Compiler& c, InstrDat
GpVar ea(c.newGpVar()); GpVar ea(c.newGpVar());
c.mov(ea, e.gpr_value(i.X.RA)); c.mov(ea, e.gpr_value(i.X.RA));
c.add(ea, e.gpr_value(i.X.RB)); c.add(ea, e.gpr_value(i.X.RB));
e.update_gpr_value(i.X.RA, ea);
GpVar v = e.ReadMemory(i.address, ea, 8, false); GpVar v = e.ReadMemory(i.address, ea, 8, false);
e.update_gpr_value(i.X.RT, v); e.update_gpr_value(i.X.RT, v);
e.update_gpr_value(i.X.RA, ea);
return 0; return 0;
} }