diff options
| author | 2023-11-28 14:30:39 -0500 | |
|---|---|---|
| committer | 2023-12-04 10:37:16 -0500 | |
| commit | 45c87c7e6e841c11def43e5ab25160006dab6d77 (patch) | |
| tree | 04a3ea0bd8c07389e17741aa28615e3b32ace2f7 /src/core/hle/service/jit | |
| parent | Merge pull request #12235 from liamwhite/flip-clip (diff) | |
| download | yuzu-45c87c7e6e841c11def43e5ab25160006dab6d77.tar.gz yuzu-45c87c7e6e841c11def43e5ab25160006dab6d77.tar.xz yuzu-45c87c7e6e841c11def43e5ab25160006dab6d77.zip | |
core: refactor emulated cpu core activation
Diffstat (limited to 'src/core/hle/service/jit')
| -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()) { |