diff options
| author | 2023-11-26 19:50:10 -0500 | |
|---|---|---|
| committer | 2023-11-26 19:50:10 -0500 | |
| commit | 15f35b8657ef863ea3df0d141521b72c61f0069f (patch) | |
| tree | 922146eff6e598643619ab350abe3f25201f3172 | |
| parent | loader: fix gcc compile (diff) | |
| download | yuzu-15f35b8657ef863ea3df0d141521b72c61f0069f.tar.gz yuzu-15f35b8657ef863ea3df0d141521b72c61f0069f.tar.xz yuzu-15f35b8657ef863ea3df0d141521b72c61f0069f.zip | |
general: fix mac compile
Diffstat (limited to '')
| -rw-r--r-- | src/common/host_memory.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_process.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 4cbc22b85..413dd3e98 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp | |||
| @@ -621,6 +621,8 @@ public: | |||
| 621 | 621 | ||
| 622 | void Protect(size_t virtual_offset, size_t length, bool read, bool write, bool execute) {} | 622 | void Protect(size_t virtual_offset, size_t length, bool read, bool write, bool execute) {} |
| 623 | 623 | ||
| 624 | void EnableDirectMappedAddress() {} | ||
| 625 | |||
| 624 | u8* backing_base{nullptr}; | 626 | u8* backing_base{nullptr}; |
| 625 | u8* virtual_base{nullptr}; | 627 | u8* virtual_base{nullptr}; |
| 626 | }; | 628 | }; |
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index d2e9f2a2e..6c29eb72c 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp | |||
| @@ -1215,7 +1215,7 @@ void KProcess::LoadModule(CodeSet code_set, KProcessAddress base_addr) { | |||
| 1215 | ReprotectSegment(code_set.RODataSegment(), Svc::MemoryPermission::Read); | 1215 | ReprotectSegment(code_set.RODataSegment(), Svc::MemoryPermission::Read); |
| 1216 | ReprotectSegment(code_set.DataSegment(), Svc::MemoryPermission::ReadWrite); | 1216 | ReprotectSegment(code_set.DataSegment(), Svc::MemoryPermission::ReadWrite); |
| 1217 | 1217 | ||
| 1218 | #ifdef ARCHITECTURE_arm64 | 1218 | #ifdef HAS_NCE |
| 1219 | if (Settings::IsNceEnabled()) { | 1219 | if (Settings::IsNceEnabled()) { |
| 1220 | auto& buffer = m_kernel.System().DeviceMemory().buffer; | 1220 | auto& buffer = m_kernel.System().DeviceMemory().buffer; |
| 1221 | const auto& code = code_set.CodeSegment(); | 1221 | const auto& code = code_set.CodeSegment(); |