Core: rearrange XorVariableToX86reg parameters
This commit is contained in:
parent
2fcce6cdd5
commit
a4c49a3567
|
@ -5935,26 +5935,26 @@ void CX86RecompilerOps::SPECIAL_XOR()
|
|||
if (g_System->b32BitCore())
|
||||
{
|
||||
Map_GPR_32bit(m_Opcode.rd, true, KnownReg);
|
||||
m_Assembler.XorVariableToX86reg(&_GPR[UnknownReg].W[0], CRegName::GPR_Lo[UnknownReg], GetMipsRegMapLo(m_Opcode.rd));
|
||||
m_Assembler.XorVariableToX86reg(GetMipsRegMapLo(m_Opcode.rd), &_GPR[UnknownReg].W[0], CRegName::GPR_Lo[UnknownReg]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Map_GPR_64bit(m_Opcode.rd, KnownReg);
|
||||
m_Assembler.XorVariableToX86reg(&_GPR[UnknownReg].W[1], CRegName::GPR_Hi[UnknownReg], GetMipsRegMapHi(m_Opcode.rd));
|
||||
m_Assembler.XorVariableToX86reg(&_GPR[UnknownReg].W[0], CRegName::GPR_Lo[UnknownReg], GetMipsRegMapLo(m_Opcode.rd));
|
||||
m_Assembler.XorVariableToX86reg(GetMipsRegMapHi(m_Opcode.rd), &_GPR[UnknownReg].W[1], CRegName::GPR_Hi[UnknownReg]);
|
||||
m_Assembler.XorVariableToX86reg(GetMipsRegMapLo(m_Opcode.rd), &_GPR[UnknownReg].W[0], CRegName::GPR_Lo[UnknownReg]);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (g_System->b32BitCore())
|
||||
{
|
||||
Map_GPR_32bit(m_Opcode.rd, true, m_Opcode.rt);
|
||||
m_Assembler.XorVariableToX86reg(&_GPR[m_Opcode.rs].W[0], CRegName::GPR_Lo[m_Opcode.rs], GetMipsRegMapLo(m_Opcode.rd));
|
||||
m_Assembler.XorVariableToX86reg(GetMipsRegMapLo(m_Opcode.rd), &_GPR[m_Opcode.rs].W[0], CRegName::GPR_Lo[m_Opcode.rs]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Map_GPR_64bit(m_Opcode.rd, m_Opcode.rt);
|
||||
m_Assembler.XorVariableToX86reg(&_GPR[m_Opcode.rs].W[1], CRegName::GPR_Hi[m_Opcode.rs], GetMipsRegMapHi(m_Opcode.rd));
|
||||
m_Assembler.XorVariableToX86reg(&_GPR[m_Opcode.rs].W[0], CRegName::GPR_Lo[m_Opcode.rs], GetMipsRegMapLo(m_Opcode.rd));
|
||||
m_Assembler.XorVariableToX86reg(GetMipsRegMapHi(m_Opcode.rd), &_GPR[m_Opcode.rs].W[1], CRegName::GPR_Hi[m_Opcode.rs]);
|
||||
m_Assembler.XorVariableToX86reg(GetMipsRegMapLo(m_Opcode.rd), &_GPR[m_Opcode.rs].W[0], CRegName::GPR_Lo[m_Opcode.rs]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2727,7 +2727,7 @@ void CX86Ops::XorX86RegToX86Reg(x86Reg Source, x86Reg Destination)
|
|||
AddCode16(x86Command);
|
||||
}
|
||||
|
||||
void CX86Ops::XorVariableToX86reg(void * Variable, const char * VariableName, x86Reg Reg)
|
||||
void CX86Ops::XorVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName)
|
||||
{
|
||||
CodeLog(" Xor %s, dword ptr [%s]", x86_Name(Reg), VariableName);
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ public:
|
|||
void TestX86ByteRegToX86Reg(x86Reg Destination, x86Reg Source);
|
||||
void XorConstToX86Reg(x86Reg Reg, uint32_t Const);
|
||||
void XorX86RegToX86Reg(x86Reg Source, x86Reg Destination);
|
||||
void XorVariableToX86reg(void * Variable, const char * VariableName, x86Reg Reg);
|
||||
void XorVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName);
|
||||
|
||||
void fpuAbs();
|
||||
void fpuAddDword(void * Variable, const char * VariableName);
|
||||
|
|
Loading…
Reference in New Issue