mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-06 17:48:08 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ inline OpArg MScaled(X64Reg scaled, int scale, int offset) {
|
|||
if (scale == SCALE_1)
|
||||
return OpArg(offset, SCALE_ATREG, scaled);
|
||||
else
|
||||
return OpArg(offset, scale | 0x20, INVALID_REG, scaled);
|
||||
return OpArg(offset, scale | 0x20, RAX, scaled);
|
||||
}
|
||||
inline OpArg MRegSum(X64Reg base, X64Reg offset) {
|
||||
return MComplex(base, offset, 1, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue