mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #5637 from Tilka/symbols
JitCache: use SymbolDB names as JIT block names
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/PowerPC/JitCommon/JitBase.h"
|
#include "Core/PowerPC/JitCommon/JitBase.h"
|
||||||
|
#include "Core/PowerPC/PPCSymbolDB.h"
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -131,7 +132,12 @@ void JitBaseBlockCache::FinalizeBlock(JitBlock& block, bool block_link,
|
|||||||
LinkBlock(block);
|
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)
|
JitBlock* JitBaseBlockCache::GetBlockFromStartAddress(u32 addr, u32 msr)
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
# kernel.yama.ptrace_scope = 0
|
# kernel.yama.ptrace_scope = 0
|
||||||
#
|
#
|
||||||
# Example usage:
|
# Example usage:
|
||||||
# $ dolphin-emu -P /tmp -b -e $game
|
# $ dolphin-emu -C Dolphin.Core.PerfMapDir=/tmp -b -e $game
|
||||||
# $ perf top -p $(pidof dolphin-emu) --objdump ./Tools/perf-disassemble.sh
|
# $ perf top -p $(pidof dolphin-emu) --objdump ./Tools/perf-disassemble.sh -M intel
|
||||||
|
|
||||||
flavor=att
|
flavor=att
|
||||||
raw=r
|
raw=r
|
||||||
|
Reference in New Issue
Block a user