mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
JIT: Use RAX instead of INVALID_REG for offsetOrBaseReg in MScaled
Fixes asserts triggering in WriteRex with 32bits. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7656 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
78529e2eb6
commit
383d12185f
@ -184,7 +184,7 @@ inline OpArg MScaled(X64Reg scaled, int scale, int offset) {
|
|||||||
if (scale == SCALE_1)
|
if (scale == SCALE_1)
|
||||||
return OpArg(offset, SCALE_ATREG, scaled);
|
return OpArg(offset, SCALE_ATREG, scaled);
|
||||||
else
|
else
|
||||||
return OpArg(offset, scale | 0x20, INVALID_REG, scaled);
|
return OpArg(offset, scale | 0x20, RAX, scaled);
|
||||||
}
|
}
|
||||||
inline OpArg MRegSum(X64Reg base, X64Reg offset) {
|
inline OpArg MRegSum(X64Reg base, X64Reg offset) {
|
||||||
return MComplex(base, offset, 1, 0);
|
return MComplex(base, offset, 1, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user