From d3f49097c5226dc9ff0dd2fa37dc4896a38d9448 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 18 Jan 2015 23:20:44 +0100 Subject: [PATCH] VertexLoaderX64: register symbol for code page --- Source/Core/VideoCommon/VertexLoaderX64.cpp | 5 +++++ Source/Core/VideoCommon/VertexLoaderX64.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/VertexLoaderX64.cpp b/Source/Core/VideoCommon/VertexLoaderX64.cpp index 91cf01b608..c9b435bae3 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderX64.cpp @@ -5,6 +5,7 @@ #endif #include "Common/CPUDetect.h" +#include "Common/JitRegister.h" #include "Common/x64ABI.h" #include "VideoCommon/VertexLoaderX64.h" @@ -27,6 +28,10 @@ VertexLoaderX64::VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att): ClearCodeSpace(); GenerateVertexLoader(); WriteProtect(); + + std::string name; + AppendToString(&name); + JitRegister::Register(region, (u32)(GetCodePtr() - region), name.c_str()); } OpArg VertexLoaderX64::GetVertexAddr(int array, u64 attribute) diff --git a/Source/Core/VideoCommon/VertexLoaderX64.h b/Source/Core/VideoCommon/VertexLoaderX64.h index e578fb49d8..3cf9d7c8ba 100644 --- a/Source/Core/VideoCommon/VertexLoaderX64.h +++ b/Source/Core/VideoCommon/VertexLoaderX64.h @@ -7,7 +7,7 @@ public: VertexLoaderX64(const TVtxDesc& vtx_desc, const VAT& vtx_att); protected: - std::string GetName() const override { return "VertexLoaderJit"; } + std::string GetName() const override { return "VertexLoaderX64"; } bool IsInitialized() override; int RunVertices(int primitive, int count, DataReader src, DataReader dst) override;