diff options
| author | comex <comexk@gmail.com> | 2014-09-08 01:03:36 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2014-09-08 01:03:36 -0400 |
| commit | 7fb6628789e904fb8cd1a90c0e261b6da8cfa7be (patch) | |
| tree | f966082cafd74267c7c617147eb86ba417af199f /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 262fa1de02647f0faa4c266bf93a084e74cd6d99 (diff) | |
| parent | 4dc090643d34917ce369d84032fc9530de46c7f0 (diff) | |
Merge pull request #1024 from comex/abi-cleanup
ABI cleanup
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index a227b6da52..3f509e8d32 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -584,7 +584,8 @@ void VertexLoader::CompileVertexTranslator() PanicAlert("Trying to recompile a vertex translator"); m_compiledCode = GetCodePtr(); - ABI_PushAllCalleeSavedRegsAndAdjustStack(); + // We don't use any callee saved registers or anything but RAX. + ABI_PushRegistersAndAdjustStack(0, 8); // Start loop here const u8 *loop_start = GetCodePtr(); @@ -845,7 +846,7 @@ void VertexLoader::CompileVertexTranslator() SUB(32, MatR(RAX), Imm8(1)); J_CC(CC_NZ, loop_start); - ABI_PopAllCalleeSavedRegsAndAdjustStack(); + ABI_PopRegistersAndAdjustStack(0, 8); RET(); #endif } |
