summaryrefslogtreecommitdiff
path: root/src/core/arm/nce/patch.h
diff options
context:
space:
mode:
authorGravatar GPUCode2023-11-19 11:21:53 +0200
committerGravatar t8952023-11-25 00:47:35 -0500
commit6de2edcca1624982e99a72741d4fa289dc9d7551 (patch)
tree8c355b39a6f71e333ccc2f929816ce96e40d3f2c /src/core/arm/nce/patch.h
parentandroid: Add cpu bakend gui toggle (diff)
downloadyuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.tar.gz
yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.tar.xz
yuzu-6de2edcca1624982e99a72741d4fa289dc9d7551.zip
Address some review comments
Diffstat (limited to 'src/core/arm/nce/patch.h')
-rw-r--r--src/core/arm/nce/patch.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/core/arm/nce/patch.h b/src/core/arm/nce/patch.h
index b727d4e48..dcce1bfc6 100644
--- a/src/core/arm/nce/patch.h
+++ b/src/core/arm/nce/patch.h
@@ -7,23 +7,17 @@
7#include <unordered_map> 7#include <unordered_map>
8#include <vector> 8#include <vector>
9 9
10#pragma clang diagnostic push 10#pragma GCC diagnostic push
11#pragma clang diagnostic ignored "-Wshorten-64-to-32" 11#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
12#include <oaknut/code_block.hpp> 12#include <oaknut/code_block.hpp>
13#include <oaknut/oaknut.hpp> 13#include <oaknut/oaknut.hpp>
14#pragma clang diagnostic pop 14#pragma GCC diagnostic pop
15 15
16#include "common/common_types.h" 16#include "common/common_types.h"
17#include "core/hle/kernel/code_set.h" 17#include "core/hle/kernel/code_set.h"
18#include "core/hle/kernel/k_typed_address.h" 18#include "core/hle/kernel/k_typed_address.h"
19#include "core/hle/kernel/physical_memory.h" 19#include "core/hle/kernel/physical_memory.h"
20 20
21#include <signal.h>
22
23namespace Core {
24struct GuestContext;
25}
26
27namespace Core::NCE { 21namespace Core::NCE {
28 22
29enum class PatchMode : u32 { 23enum class PatchMode : u32 {
@@ -45,9 +39,9 @@ public:
45 const Kernel::CodeSet::Segment& code); 39 const Kernel::CodeSet::Segment& code);
46 void RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::CodeSet::Segment& code, 40 void RelocateAndCopy(Common::ProcessAddress load_base, const Kernel::CodeSet::Segment& code,
47 Kernel::PhysicalMemory& program_image, EntryTrampolines* out_trampolines); 41 Kernel::PhysicalMemory& program_image, EntryTrampolines* out_trampolines);
48 size_t SectionSize() const noexcept; 42 size_t GetSectionSize() const noexcept;
49 43
50 [[nodiscard]] PatchMode Mode() const noexcept { 44 [[nodiscard]] PatchMode GetPatchMode() const noexcept {
51 return mode; 45 return mode;
52 } 46 }
53 47