Save regs before/after 3-arg func calls on x86.

This fixes bugs only on x64 when ABI_CallFunctionACC and etc. were used.
This was breaking things since R8 was not being saved (arg 3.)
This commit is contained in:
Unknown W. Brackets committed 2013-07-06 00:54:53 -07:00
1 parent 19f2b35679
commit 662ae77214
4 files changed
+49 -8

No files matched your search

+1
View File
@@ -559,6 +559,7 @@ void XEmitter::ABI_PushAllCalleeSavedRegsAndAdjustStack() {
PUSH(R14);
PUSH(R15);
PUSH(R15); //just to align stack. duped push/pop doesn't hurt.
// TODO: XMM?
}
void XEmitter::ABI_PopAllCalleeSavedRegsAndAdjustStack() {