Explorar o código

Merge pull request #12271 from liamwhite/pretext-fix

nce: fix pre-text patch for single modules
liamwhite %!s(int64=2) %!d(string=hai) anos
pai
achega
167efb2d2b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/core/arm/nce/patcher.cpp

+ 2 - 0
src/core/arm/nce/patcher.cpp

@@ -28,6 +28,8 @@ Patcher::~Patcher() = default;
 
 void Patcher::PatchText(const Kernel::PhysicalMemory& program_image,
                         const Kernel::CodeSet::Segment& code) {
+    // Branch to the first instruction of the module.
+    this->BranchToModule(0);
 
     // Write save context helper function.
     c.l(m_save_context);