DebuggerWX: Added jit block linking option to the code window

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1958 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-01-20 16:52:46 +00:00
parent 140ba01794
commit d39819c4b5
4 changed files with 25 additions and 7 deletions

View File

@ -174,8 +174,6 @@ namespace CPUCompare
void Jit64::Init()
{
asm_routines.compareEnabled = ::Core::g_CoreStartupParameter.bRunCompareClient;
if (Core::g_CoreStartupParameter.bJITUnlimitedCache)
CODE_SIZE = 1024*1024*8*8;
jo.optimizeStack = true;
jo.enableBlocklink = false; // Speed boost, but not 100% safe
@ -193,6 +191,12 @@ namespace CPUCompare
gpr.SetEmitter(this);
fpr.SetEmitter(this);
// Custom settings
if (Core::g_CoreStartupParameter.bJITUnlimitedCache)
CODE_SIZE = 1024*1024*8*8;
if (Core::g_CoreStartupParameter.bJITBlockLinking)
{ jo.enableBlocklink = true; SuccessAlert("Your game was started with JIT Block Linking"); }
trampolines.Init();
AllocCodeSpace(CODE_SIZE);