summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-24 13:48:06 +0200
committerGitHub <noreply@github.com>2018-07-24 13:48:06 +0200
commit316c994f55c38a8eea6a3e4046238ff8da7ecd8c (patch)
treec214cef9b4e3830ee5f78ebefe9cfa8ee4614cd5
parentMerge pull request #797 from lioncash/explicit (diff)
parentarm_dynarmic: Make MakeJit() a const member function (diff)
downloadyuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.tar
yuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.tar.gz
yuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.tar.bz2
yuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.tar.lz
yuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.tar.xz
yuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.tar.zst
yuzu-316c994f55c38a8eea6a3e4046238ff8da7ecd8c.zip
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.cpp4
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp
index d23adb28a..57b8634b9 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic.cpp
@@ -102,8 +102,8 @@ public:
u64 tpidr_el0 = 0;
};
-std::unique_ptr<Dynarmic::A64::Jit> ARM_Dynarmic::MakeJit() {
- const auto page_table = Core::CurrentProcess()->vm_manager.page_table.pointers.data();
+std::unique_ptr<Dynarmic::A64::Jit> ARM_Dynarmic::MakeJit() const {
+ auto** const page_table = Core::CurrentProcess()->vm_manager.page_table.pointers.data();
Dynarmic::A64::UserConfig config;
diff --git a/src/core/arm/dynarmic/arm_dynarmic.h b/src/core/arm/dynarmic/arm_dynarmic.h
index 350f61fd2..14c072601 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.h
+++ b/src/core/arm/dynarmic/arm_dynarmic.h
@@ -50,7 +50,7 @@ public:
void PageTableChanged() override;
private:
- std::unique_ptr<Dynarmic::A64::Jit> MakeJit();
+ std::unique_ptr<Dynarmic::A64::Jit> MakeJit() const;
friend class ARM_Dynarmic_Callbacks;
std::unique_ptr<ARM_Dynarmic_Callbacks> cb;