JitCache: use SymbolDB names as JIT block names

This commit is contained in:
Tillmann Karras 2017-06-18 06:58:44 +01:00
parent 795157a9bc
commit 9a2bef97da

View File

@ -22,6 +22,7 @@
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/PowerPC/JitCommon/JitBase.h"
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
#ifdef _WIN32
@ -131,7 +132,12 @@ void JitBaseBlockCache::FinalizeBlock(JitBlock& block, bool block_link,
LinkBlock(block);
}
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%08x", block.physicalAddress);
if (Symbol* symbol = g_symbolDB.GetSymbolFromAddr(block.effectiveAddress))
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%s_%08x",
symbol->function_name.c_str(), block.physicalAddress);
else
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%08x",
block.physicalAddress);
}
JitBlock* JitBaseBlockCache::GetBlockFromStartAddress(u32 addr, u32 msr)