From 7827ea76a317c04fc24734288911aad7ba493e28 Mon Sep 17 00:00:00 2001 From: yuzubot Date: Tue, 5 Dec 2023 00:57:39 +0000 Subject: [PATCH] Merge PR 12271 --- src/core/arm/nce/patcher.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/arm/nce/patcher.cpp b/src/core/arm/nce/patcher.cpp index ec8527224..bdaa3af49 100644 --- a/src/core/arm/nce/patcher.cpp +++ b/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);