summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/code_set.h
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-11-20 14:52:18 +0100
committert895 <clombardo169@gmail.com>2023-11-25 06:47:36 +0100
commit3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0 (patch)
tree4f8cb57560d4aa06d73a799537945b5a842460b2 /src/core/hle/kernel/code_set.h
parentcommon: Enforce fastmem for nce usage (diff)
downloadyuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.gz
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.bz2
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.lz
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.xz
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.zst
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.zip
Diffstat (limited to 'src/core/hle/kernel/code_set.h')
-rw-r--r--src/core/hle/kernel/code_set.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/code_set.h b/src/core/hle/kernel/code_set.h
index d53da82f4..4d2d0098e 100644
--- a/src/core/hle/kernel/code_set.h
+++ b/src/core/hle/kernel/code_set.h
@@ -75,6 +75,7 @@ struct CodeSet final {
return segments[2];
}
+#ifdef HAS_NCE
Segment& PatchSegment() {
return patch_segment;
}
@@ -82,13 +83,17 @@ struct CodeSet final {
const Segment& PatchSegment() const {
return patch_segment;
}
+#endif
/// The overall data that backs this code set.
Kernel::PhysicalMemory memory;
/// The segments that comprise this code set.
std::array<Segment, 3> segments;
+
+#ifdef HAS_NCE
Segment patch_segment;
+#endif
/// The entry point address for this code set.
KProcessAddress entrypoint = 0;