aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-02 16:14:01 -0500
committerLiam <byteslice@airmail.cc>2023-12-02 16:14:52 -0500
commit79d497c022b1fc55072a7ec301eb5563f679dc2f (patch)
treea73b0deb2ab60e9051aba90cccc065908fca8e2b /src/core
parent8c522bf3a70eb6192c4125ce5c615b1365be014b (diff)
nce: fix pre-text patch for single modules
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/nce/patcher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/arm/nce/patcher.cpp b/src/core/arm/nce/patcher.cpp
index ec8527224a..bdaa3af49f 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);