diff options
| author | 2022-06-14 18:19:04 -0400 | |
|---|---|---|
| committer | 2022-06-14 18:19:04 -0400 | |
| commit | 20eab9fed9435ecf4d222cefc4487fc8a2f81fe3 (patch) | |
| tree | 7f9899bf3621fd4be5d7ef224a4c1f113aa2862e /src/core/arm/arm_interface.cpp | |
| parent | Merge pull request #8461 from Morph1984/msvc-narrow-conv (diff) | |
| download | yuzu-20eab9fed9435ecf4d222cefc4487fc8a2f81fe3.tar.gz yuzu-20eab9fed9435ecf4d222cefc4487fc8a2f81fe3.tar.xz yuzu-20eab9fed9435ecf4d222cefc4487fc8a2f81fe3.zip | |
core: centralize profile scope for Dynarmic
Diffstat (limited to 'src/core/arm/arm_interface.cpp')
| -rw-r--r-- | src/core/arm/arm_interface.cpp | 2 |
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() { | |||
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | // Otherwise, run the thread. | 109 | // Otherwise, run the thread. |
| 110 | system.EnterDynarmicProfile(); | ||
| 110 | if (current_thread->GetStepState() == StepState::StepPending) { | 111 | if (current_thread->GetStepState() == StepState::StepPending) { |
| 111 | hr = StepJit(); | 112 | hr = StepJit(); |
| 112 | 113 | ||
| @@ -116,6 +117,7 @@ void ARM_Interface::Run() { | |||
| 116 | } else { | 117 | } else { |
| 117 | hr = RunJit(); | 118 | hr = RunJit(); |
| 118 | } | 119 | } |
| 120 | system.ExitDynarmicProfile(); | ||
| 119 | 121 | ||
| 120 | // Notify the debugger and go to sleep if a breakpoint was hit. | 122 | // Notify the debugger and go to sleep if a breakpoint was hit. |
| 121 | if (Has(hr, breakpoint)) { | 123 | if (Has(hr, breakpoint)) { |