1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

TLS setup reg selection fix

This commit is contained in:
Brian Fiete 2021-12-21 13:07:30 -05:00
parent 326c33eaa1
commit 74a63f7561

View file

@ -2171,6 +2171,8 @@ BeMCOperand BeMCContext::GetOperand(BeValue* value, bool allowMetaResult, bool a
auto vregInfo = GetVRegInfo(tlsVReg);
vregInfo->mMustExist = true;
vregInfo->mForceReg = true;
vregInfo->mDisableR12 = true;
vregInfo->mDisableR13 = true;
mTLSVRegIdx = tlsVReg.mVRegIdx;
}
@ -15930,7 +15932,7 @@ void BeMCContext::Generate(BeFunction* function)
mDbgPreferredRegs[32] = X64Reg_R8;*/
//mDbgPreferredRegs[8] = X64Reg_RAX;
//mDebugging = (function->mName == "?Load@TestProgram@BeefTest@bf@@SA?AUHandle@23@XZ");
//mDebugging = (function->mName == "?InitThread@Foo@BeefTest@bf@@CA?AU?$Result@X@System@3@H@Z");
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
// ;