diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2013-09-22 14:29:35 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2013-09-22 14:29:35 -0400 |
| commit | 9a6f28fce486f351c19a304f5ede5662ea802357 (patch) | |
| tree | e6a812a64082b8f8352289c294cf6f3289d0280c /Source/Core/VideoCommon | |
| parent | f3469c16a51f2652496c1a6a6cd60537241fbca5 (diff) | |
Revert "Fix stack misalignment issues."
This reverts commit d334a9bc23a7641143937042658f64fc9c1b7a92.
This breaks single core.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexLoader.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Src/x64DLCache.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexLoader.cpp b/Source/Core/VideoCommon/Src/VertexLoader.cpp index 825e9c6558..babaff83a5 100644 --- a/Source/Core/VideoCommon/Src/VertexLoader.cpp +++ b/Source/Core/VideoCommon/Src/VertexLoader.cpp @@ -217,7 +217,7 @@ void VertexLoader::CompileVertexTranslator() PanicAlert("Trying to recompile a vertex translator"); m_compiledCode = GetCodePtr(); - ABI_PushAllCalleeSavedRegsAndAdjustStack(); + ABI_EmitPrologue(4); // Start loop here const u8 *loop_start = GetCodePtr(); @@ -499,8 +499,7 @@ void VertexLoader::CompileVertexTranslator() #endif J_CC(CC_NZ, loop_start, true); - ABI_PopAllCalleeSavedRegsAndAdjustStack(); - RET(); + ABI_EmitEpilogue(4); #endif m_NativeFmt->Initialize(vtx_decl); } diff --git a/Source/Core/VideoCommon/Src/x64DLCache.cpp b/Source/Core/VideoCommon/Src/x64DLCache.cpp index b412c2e274..ae32ea5ea9 100644 --- a/Source/Core/VideoCommon/Src/x64DLCache.cpp +++ b/Source/Core/VideoCommon/Src/x64DLCache.cpp @@ -409,7 +409,7 @@ void CompileAndRunDisplayList(u32 address, u32 size, CachedDisplayList *dl) emitter.AlignCode4(); dl->compiled_code = emitter.GetCodePtr(); - emitter.ABI_PushAllCalleeSavedRegsAndAdjustStack(); + emitter.ABI_EmitPrologue(4); while (g_pVideoData < end) { @@ -572,8 +572,7 @@ void CompileAndRunDisplayList(u32 address, u32 size, CachedDisplayList *dl) break; } } - emitter.ABI_PopAllCalleeSavedRegsAndAdjustStack(); - emitter.RET(); + emitter.ABI_EmitEpilogue(4); INCSTAT(stats.numDListsCalled); INCSTAT(stats.thisFrame.numDListsCalled); Statistics::SwapDL(); |
