summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-04-10 04:09:37 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-04-10 04:09:37 -0700
commit3073e8fd40291375f0f46b91ae65fcaa866f3f17 (patch)
tree92df0d6cb7889d6831e22f8a1c5e9f3262b62b30 /Source/Core
parent69aca2fbfc88d08a17d36c03d51dd698eb9cce1b (diff)
CachedInterpreter: Skip Updating Instruction PERFMON When There Are None
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp
index b9d78514d5..0c600561d1 100644
--- a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp
+++ b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp
@@ -364,8 +364,10 @@ void CachedInterpreter::Jit(u32 address)
if (endblock)
{
m_code.emplace_back(EndBlock, js.downcountAmount);
- m_code.emplace_back(UpdateNumLoadStoreInstructions, js.numLoadStoreInst);
- m_code.emplace_back(UpdateNumFloatingPointInstructions, js.numFloatingPointInst);
+ if (js.numLoadStoreInst != 0)
+ m_code.emplace_back(UpdateNumLoadStoreInstructions, js.numLoadStoreInst);
+ if (js.numFloatingPointInst != 0)
+ m_code.emplace_back(UpdateNumFloatingPointInstructions, js.numFloatingPointInst);
}
}
}
@@ -373,8 +375,10 @@ void CachedInterpreter::Jit(u32 address)
{
m_code.emplace_back(WriteBrokenBlockNPC, nextPC);
m_code.emplace_back(EndBlock, js.downcountAmount);
- m_code.emplace_back(UpdateNumLoadStoreInstructions, js.numLoadStoreInst);
- m_code.emplace_back(UpdateNumFloatingPointInstructions, js.numFloatingPointInst);
+ if (js.numLoadStoreInst != 0)
+ m_code.emplace_back(UpdateNumLoadStoreInstructions, js.numLoadStoreInst);
+ if (js.numFloatingPointInst != 0)
+ m_code.emplace_back(UpdateNumFloatingPointInstructions, js.numFloatingPointInst);
}
m_code.emplace_back();