From 7d124ec82b9339a4cc427eb0867af6b65fc78985 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 23 Jul 2018 23:19:35 -0400 Subject: [PATCH] arm_dynarmic: Make MakeJit() a const member function This functions doesn't modify instance state, so it can be a made a const member function. --- src/core/arm/dynarmic/arm_dynarmic.cpp | 4 ++-- src/core/arm/dynarmic/arm_dynarmic.h | 2 +- 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 d23adb28a7..57b8634b93 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 ARM_Dynarmic::MakeJit() { - const auto page_table = Core::CurrentProcess()->vm_manager.page_table.pointers.data(); +std::unique_ptr 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 350f61fd27..14c0726013 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 MakeJit(); + std::unique_ptr MakeJit() const; friend class ARM_Dynarmic_Callbacks; std::unique_ptr cb;