diff options
| author | 2022-10-19 16:27:43 -0400 | |
|---|---|---|
| committer | 2022-10-19 16:27:43 -0400 | |
| commit | 560bca57a203c45acb1c589699b472223e8b68fd (patch) | |
| tree | 98ef4a0d62a368614075463d13c4220b11af9760 /src/core/arm/arm_interface.cpp | |
| parent | Merge pull request #9084 from vonchenplus/dma_copy (diff) | |
| parent | core: hle: kernel: Migrate ProcessState to enum class. (diff) | |
| download | yuzu-560bca57a203c45acb1c589699b472223e8b68fd.tar.gz yuzu-560bca57a203c45acb1c589699b472223e8b68fd.tar.xz yuzu-560bca57a203c45acb1c589699b472223e8b68fd.zip | |
Merge pull request #9071 from bunnei/mp-mm
Kernel Multiprocess (Part 1) - Persist memory & core timing
Diffstat (limited to 'src/core/arm/arm_interface.cpp')
| -rw-r--r-- | src/core/arm/arm_interface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/arm/arm_interface.cpp b/src/core/arm/arm_interface.cpp index 953d96439..29ba562dc 100644 --- a/src/core/arm/arm_interface.cpp +++ b/src/core/arm/arm_interface.cpp | |||
| @@ -134,6 +134,14 @@ void ARM_Interface::Run() { | |||
| 134 | } | 134 | } |
| 135 | system.ExitDynarmicProfile(); | 135 | system.ExitDynarmicProfile(); |
| 136 | 136 | ||
| 137 | // If the thread is scheduled for termination, exit the thread. | ||
| 138 | if (current_thread->HasDpc()) { | ||
| 139 | if (current_thread->IsTerminationRequested()) { | ||
| 140 | current_thread->Exit(); | ||
| 141 | UNREACHABLE(); | ||
| 142 | } | ||
| 143 | } | ||
| 144 | |||
| 137 | // Notify the debugger and go to sleep if a breakpoint was hit, | 145 | // Notify the debugger and go to sleep if a breakpoint was hit, |
| 138 | // or if the thread is unable to continue for any reason. | 146 | // or if the thread is unable to continue for any reason. |
| 139 | if (Has(hr, breakpoint) || Has(hr, no_execute)) { | 147 | if (Has(hr, breakpoint) || Has(hr, no_execute)) { |