summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-01-18 19:48:14 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2015-01-18 19:48:14 -0600
commit7e64869185d47a835d22016c232cef09a3a53615 (patch)
treed8f5d19bf319be9a25ae46917d6341b02a89d18c /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent5357b9c95ff2458e3b8c3112e303924a0d460ce6 (diff)
parentd3f49097c5226dc9ff0dd2fa37dc4896a38d9448 (diff)
Merge pull request #1887 from Tilka/vertex_loader_jit
VertexLoader: rewrite x64 JIT
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 34b821605f..0c1083b9c2 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -137,7 +137,7 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
u8* opcodeStart;
while (true)
{
- src.WritePointer(&opcodeStart);
+ opcodeStart = src.GetPointer();
if (!src.size())
goto end;
@@ -301,7 +301,7 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
if (!is_preprocess && g_bRecordFifoData && cmd_byte != GX_CMD_CALL_DL)
{
u8* opcodeEnd;
- src.WritePointer(&opcodeEnd);
+ opcodeEnd = src.GetPointer();
FifoRecorder::GetInstance().WriteGPCommand(opcodeStart, u32(opcodeEnd - opcodeStart));
}
}