Inform GCC of clobbered registers

This commit is contained in:
Simon Robertshaw 2013-02-02 21:10:56 +00:00
parent f7b734de0b
commit f3cfa6106b
2 changed files with 4 additions and 0 deletions

View File

@ -961,7 +961,9 @@ int LuaScriptInterface::updateNative(UPDATE_FUNC_ARGS)
//std::cout << arg2 << std::endl;
//std::cout << arg3 << std::endl;
nativeFunction(i, x, y);*/
__asm__("nop": : :"ecx", "ebx", "esi");
updateNativeCode[parts[i].type](i, x, y);
return 0;
}

View File

@ -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
emit("BE"); //mov esi, machineStack
emitConstantP((intptr_t)machineStack);