summaryrefslogtreecommitdiff
path: root/src/core/arm/nce/patcher.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-12-05 07:51:53 -0500
committerGravatar GitHub2023-12-05 07:51:53 -0500
commit167efb2d2bc3546fa9835ce1c20ece3ec3aa2c17 (patch)
treefc6b22a09499d5dbf6e1954fb4e1d7e176b5c6ad /src/core/arm/nce/patcher.cpp
parentMerge pull request #12283 from t895/language-troubles (diff)
parentnce: fix pre-text patch for single modules (diff)
downloadyuzu-167efb2d2bc3546fa9835ce1c20ece3ec3aa2c17.tar.gz
yuzu-167efb2d2bc3546fa9835ce1c20ece3ec3aa2c17.tar.xz
yuzu-167efb2d2bc3546fa9835ce1c20ece3ec3aa2c17.zip
Merge pull request #12271 from liamwhite/pretext-fix
nce: fix pre-text patch for single modules
Diffstat (limited to 'src/core/arm/nce/patcher.cpp')
-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 ec8527224..bdaa3af49 100644
--- a/src/core/arm/nce/patcher.cpp
+++ b/src/core/arm/nce/patcher.cpp
@@ -28,6 +28,8 @@ Patcher::~Patcher() = default;
28 28
29void Patcher::PatchText(const Kernel::PhysicalMemory& program_image, 29void Patcher::PatchText(const Kernel::PhysicalMemory& program_image,
30 const Kernel::CodeSet::Segment& code) { 30 const Kernel::CodeSet::Segment& code) {
31 // Branch to the first instruction of the module.
32 this->BranchToModule(0);
31 33
32 // Write save context helper function. 34 // Write save context helper function.
33 c.l(m_save_context); 35 c.l(m_save_context);