summaryrefslogtreecommitdiff
path: root/src/core/arm
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-06-14 18:19:04 -0400
committerLiam <byteslice@airmail.cc>2022-06-14 18:19:04 -0400
commit20eab9fed9435ecf4d222cefc4487fc8a2f81fe3 (patch)
tree7f9899bf3621fd4be5d7ef224a4c1f113aa2862e /src/core/arm
parentc6e7ca562ac4c8957d64f7d9161aa53ca43a96ff (diff)
core: centralize profile scope for Dynarmic
Diffstat (limited to 'src/core/arm')
-rw-r--r--src/core/arm/arm_interface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/arm/arm_interface.cpp b/src/core/arm/arm_interface.cpp
index 9b5a5ca57..9a285dfc6 100644
--- a/src/core/arm/arm_interface.cpp
+++ b/src/core/arm/arm_interface.cpp
@@ -107,6 +107,7 @@ void ARM_Interface::Run() {
}
// Otherwise, run the thread.
+ system.EnterDynarmicProfile();
if (current_thread->GetStepState() == StepState::StepPending) {
hr = StepJit();
@@ -116,6 +117,7 @@ void ARM_Interface::Run() {
} else {
hr = RunJit();
}
+ system.ExitDynarmicProfile();
// Notify the debugger and go to sleep if a breakpoint was hit.
if (Has(hr, breakpoint)) {