mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
Merge pull request #2849 from lioncash/cond
JitInterface: Fix null checking in GetProfileResults
This commit is contained in:
commit
d8d62336b5
1 changed files with 4 additions and 4 deletions
|
@ -133,15 +133,15 @@ namespace JitInterface
|
||||||
|
|
||||||
void GetProfileResults(ProfileStats* prof_stats)
|
void GetProfileResults(ProfileStats* prof_stats)
|
||||||
{
|
{
|
||||||
|
// Can't really do this with no jit core available
|
||||||
|
if (!jit)
|
||||||
|
return;
|
||||||
|
|
||||||
prof_stats->cost_sum = 0;
|
prof_stats->cost_sum = 0;
|
||||||
prof_stats->timecost_sum = 0;
|
prof_stats->timecost_sum = 0;
|
||||||
prof_stats->block_stats.clear();
|
prof_stats->block_stats.clear();
|
||||||
prof_stats->block_stats.reserve(jit->GetBlockCache()->GetNumBlocks());
|
prof_stats->block_stats.reserve(jit->GetBlockCache()->GetNumBlocks());
|
||||||
|
|
||||||
// Can't really do this with no jit core available
|
|
||||||
if (!jit)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Core::EState old_state = Core::GetState();
|
Core::EState old_state = Core::GetState();
|
||||||
if (old_state == Core::CORE_RUN)
|
if (old_state == Core::CORE_RUN)
|
||||||
Core::SetState(Core::CORE_PAUSE);
|
Core::SetState(Core::CORE_PAUSE);
|
||||||
|
|
Loading…
Reference in a new issue