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/arm/nce/patch.cpp | |
| 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/arm/nce/patch.cpp')
| -rw-r--r-- | src/core/arm/nce/patch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/arm/nce/patch.cpp b/src/core/arm/nce/patch.cpp index c79399c2b..bc4b73634 100644 --- a/src/core/arm/nce/patch.cpp +++ b/src/core/arm/nce/patch.cpp | |||
| @@ -100,7 +100,7 @@ void Patcher::RelocateAndCopy(Common::ProcessAddress load_base, | |||
| 100 | const Kernel::CodeSet::Segment& code, | 100 | const Kernel::CodeSet::Segment& code, |
| 101 | Kernel::PhysicalMemory& program_image, | 101 | Kernel::PhysicalMemory& program_image, |
| 102 | EntryTrampolines* out_trampolines) { | 102 | EntryTrampolines* out_trampolines) { |
| 103 | const size_t patch_size = SectionSize(); | 103 | const size_t patch_size = GetSectionSize(); |
| 104 | const size_t image_size = program_image.size(); | 104 | const size_t image_size = program_image.size(); |
| 105 | 105 | ||
| 106 | // Retrieve text segment data. | 106 | // Retrieve text segment data. |
| @@ -180,7 +180,7 @@ void Patcher::RelocateAndCopy(Common::ProcessAddress load_base, | |||
| 180 | } | 180 | } |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | size_t Patcher::SectionSize() const noexcept { | 183 | size_t Patcher::GetSectionSize() const noexcept { |
| 184 | return Common::AlignUp(m_patch_instructions.size() * sizeof(u32), Core::Memory::YUZU_PAGESIZE); | 184 | return Common::AlignUp(m_patch_instructions.size() * sizeof(u32), Core::Memory::YUZU_PAGESIZE); |
| 185 | } | 185 | } |
| 186 | 186 | ||
| @@ -256,7 +256,6 @@ void Patcher::WriteSaveContext() { | |||
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | void Patcher::WriteSvcTrampoline(ModuleDestLabel module_dest, u32 svc_id) { | 258 | void Patcher::WriteSvcTrampoline(ModuleDestLabel module_dest, u32 svc_id) { |
| 259 | LOG_ERROR(Core_ARM, "Patching SVC {:#x} at {:#x}", svc_id, module_dest - 4); | ||
| 260 | // We are about to start saving state, so we need to lock the context. | 259 | // We are about to start saving state, so we need to lock the context. |
| 261 | this->LockContext(); | 260 | this->LockContext(); |
| 262 | 261 | ||