|
|
|
@ -4,6 +4,7 @@ |
|
|
|
#include <numeric>
|
|
|
|
#include <bit>
|
|
|
|
#include "common/arm64/native_clock.h"
|
|
|
|
#include "common/alignment.h"
|
|
|
|
#include "common/literals.h"
|
|
|
|
#include "core/arm/nce/arm_nce.h"
|
|
|
|
#include "core/arm/nce/guest_context.h"
|
|
|
|
@ -46,7 +47,7 @@ Patcher::Patcher() : c(m_patch_instructions), c_pre(m_patch_instructions_pre) { |
|
|
|
|
|
|
|
Patcher::~Patcher() = default; |
|
|
|
|
|
|
|
bool Patcher::PatchText(std::vector<const u8> program_image, const Kernel::CodeSet::Segment& code) { |
|
|
|
bool Patcher::PatchText(std::span<const u8> program_image, const Kernel::CodeSet::Segment& code) { |
|
|
|
// If we have patched modules but cannot reach the new module, then it needs its own patcher.
|
|
|
|
const size_t image_size = program_image.size(); |
|
|
|
|
|
|
|
|