diff options
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 | ||