diff options
| author | 2023-12-06 14:19:17 +0100 | |
|---|---|---|
| committer | 2023-12-06 14:19:17 +0100 | |
| commit | 8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a (patch) | |
| tree | 265bf3c7970a570479c6a3ac1250549995f0329c /src/core/hle/service | |
| parent | Merge pull request #12271 from liamwhite/pretext-fix (diff) | |
| parent | arm: fix context save of vector regs (diff) | |
| download | yuzu-8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a.tar.gz yuzu-8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a.tar.xz yuzu-8a79dd2d6c6445bff63ea1f2f5f1611a6afcd97a.zip | |
Merge pull request #12236 from liamwhite/cpu-refactor
core: refactor emulated cpu core activation
Diffstat (limited to 'src/core/hle/service')
| -rw-r--r-- | src/core/hle/service/jit/jit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/jit/jit.cpp b/src/core/hle/service/jit/jit.cpp index be996870f..65851fc05 100644 --- a/src/core/hle/service/jit/jit.cpp +++ b/src/core/hle/service/jit/jit.cpp | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/arm/debug.h" | ||
| 4 | #include "core/arm/symbols.h" | 5 | #include "core/arm/symbols.h" |
| 5 | #include "core/core.h" | 6 | #include "core/core.h" |
| 6 | #include "core/hle/kernel/k_code_memory.h" | 7 | #include "core/hle/kernel/k_code_memory.h" |
| @@ -98,8 +99,9 @@ public: | |||
| 98 | if (return_value == 0) { | 99 | if (return_value == 0) { |
| 99 | // The callback has written to the output executable code range, | 100 | // The callback has written to the output executable code range, |
| 100 | // requiring an instruction cache invalidation | 101 | // requiring an instruction cache invalidation |
| 101 | system.InvalidateCpuInstructionCacheRange(configuration.user_rx_memory.offset, | 102 | Core::InvalidateInstructionCacheRange(process.GetPointerUnsafe(), |
| 102 | configuration.user_rx_memory.size); | 103 | configuration.user_rx_memory.offset, |
| 104 | configuration.user_rx_memory.size); | ||
| 103 | 105 | ||
| 104 | // Write back to the IPC output buffer, if provided | 106 | // Write back to the IPC output buffer, if provided |
| 105 | if (ctx.CanWriteBuffer()) { | 107 | if (ctx.CanWriteBuffer()) { |