Inform GCC of clobbered registers
This commit is contained in:
parent
f7b734de0b
commit
f3cfa6106b
@ -961,7 +961,9 @@ int LuaScriptInterface::updateNative(UPDATE_FUNC_ARGS)
|
|||||||
//std::cout << arg2 << std::endl;
|
//std::cout << arg2 << std::endl;
|
||||||
//std::cout << arg3 << std::endl;
|
//std::cout << arg3 << std::endl;
|
||||||
nativeFunction(i, x, y);*/
|
nativeFunction(i, x, y);*/
|
||||||
|
__asm__("nop": : :"ecx", "ebx", "esi");
|
||||||
updateNativeCode[parts[i].type](i, x, y);
|
updateNativeCode[parts[i].type](i, x, y);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ namespace pim
|
|||||||
|
|
||||||
for(int i = 0; i < 8; i++) { emit("90"); } //nop, helps find the code in memory with a debugger
|
for(int i = 0; i < 8; i++) { emit("90"); } //nop, helps find the code in memory with a debugger
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
emit("BE"); //mov esi, machineStack
|
emit("BE"); //mov esi, machineStack
|
||||||
emitConstantP((intptr_t)machineStack);
|
emitConstantP((intptr_t)machineStack);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user