Merge pull request #1369 from Sonicadvance1/enable-profiling

Enables block profiling in the UI on non x86 targets.
This commit is contained in:
Lioncash 2014-10-23 08:09:39 -04:00
commit a9f0bd72d2
1 changed files with 11 additions and 11 deletions

View File

@ -134,7 +134,8 @@ namespace JitInterface
void WriteProfileResults(const std::string& filename) void WriteProfileResults(const std::string& filename)
{ {
// Can't really do this with no jit core available // Can't really do this with no jit core available
#if _M_X86 if (!jit)
return;
std::vector<BlockStat> stats; std::vector<BlockStat> stats;
stats.reserve(jit->GetBlockCache()->GetNumBlocks()); stats.reserve(jit->GetBlockCache()->GetNumBlocks());
@ -188,7 +189,6 @@ namespace JitInterface
#endif #endif
} }
} }
#endif
} }
bool HandleFault(uintptr_t access_address, SContext* ctx) bool HandleFault(uintptr_t access_address, SContext* ctx)
{ {