nce: fix pre-text patch for single modules

merge-requests/60/head
Liam 2023-12-02 16:14:01 +07:00
parent 69529a748c
commit 9de99839bd
1 changed files with 2 additions and 0 deletions

@ -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);