diff options
| author | 2023-11-19 11:21:53 +0200 | |
|---|---|---|
| committer | 2023-11-25 00:47:35 -0500 | |
| commit | 6de2edcca1624982e99a72741d4fa289dc9d7551 (patch) | |
| tree | 8c355b39a6f71e333ccc2f929816ce96e40d3f2c /src/core/hle/kernel | |
| parent | android: Add cpu bakend gui toggle (diff) | |
| download | yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.tar.gz yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.tar.xz yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.zip | |
Address some review comments
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/k_page_table_base.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_process.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_page_table_base.cpp b/src/core/hle/kernel/k_page_table_base.cpp index f2ffc39c1..f7f1e8a3b 100644 --- a/src/core/hle/kernel/k_page_table_base.cpp +++ b/src/core/hle/kernel/k_page_table_base.cpp | |||
| @@ -96,9 +96,11 @@ constexpr Common::MemoryPermission ConvertToMemoryPermission(KMemoryPermission p | |||
| 96 | if (True(perm & KMemoryPermission::UserWrite)) { | 96 | if (True(perm & KMemoryPermission::UserWrite)) { |
| 97 | perms |= Common::MemoryPermission::Write; | 97 | perms |= Common::MemoryPermission::Write; |
| 98 | } | 98 | } |
| 99 | #ifdef ARCHITECTURE_arm64 | ||
| 99 | if (True(perm & KMemoryPermission::UserExecute)) { | 100 | if (True(perm & KMemoryPermission::UserExecute)) { |
| 100 | perms |= Common::MemoryPermission::Execute; | 101 | perms |= Common::MemoryPermission::Execute; |
| 101 | } | 102 | } |
| 103 | #endif | ||
| 102 | return perms; | 104 | return perms; |
| 103 | } | 105 | } |
| 104 | 106 | ||
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h index 7b97d452b..e5f796ac7 100644 --- a/src/core/hle/kernel/k_process.h +++ b/src/core/hle/kernel/k_process.h | |||
| @@ -472,10 +472,6 @@ public: | |||
| 472 | return m_post_handlers; | 472 | return m_post_handlers; |
| 473 | } | 473 | } |
| 474 | 474 | ||
| 475 | KernelCore& GetKernel() noexcept { | ||
| 476 | return m_kernel; | ||
| 477 | } | ||
| 478 | |||
| 479 | public: | 475 | public: |
| 480 | // Attempts to insert a watchpoint into a free slot. Returns false if none are available. | 476 | // Attempts to insert a watchpoint into a free slot. Returns false if none are available. |
| 481 | bool InsertWatchpoint(KProcessAddress addr, u64 size, DebugWatchpointType type); | 477 | bool InsertWatchpoint(KProcessAddress addr, u64 size, DebugWatchpointType type); |