From dfde03a34459a250c9b43c2a15b849f86aa8f58f Mon Sep 17 00:00:00 2001 From: offtkp Date: Thu, 27 Jul 2023 15:03:50 +0300 Subject: [PATCH] Remove unused parameter in MyEnvironment --- include/cpu_dynarmic.hpp | 2 +- src/core/CPU/cpu_dynarmic.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cpu_dynarmic.hpp b/include/cpu_dynarmic.hpp index daa25d03..cb7e5627 100644 --- a/include/cpu_dynarmic.hpp +++ b/include/cpu_dynarmic.hpp @@ -108,7 +108,7 @@ public: return getCyclesForInstruction(isThumb, instruction); } - MyEnvironment(Memory& mem, Kernel& kernel, CPU& cpu) : mem(mem), kernel(kernel) {} + MyEnvironment(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} }; class CPU { diff --git a/src/core/CPU/cpu_dynarmic.cpp b/src/core/CPU/cpu_dynarmic.cpp index c01d0641..29ca49d1 100644 --- a/src/core/CPU/cpu_dynarmic.cpp +++ b/src/core/CPU/cpu_dynarmic.cpp @@ -2,7 +2,7 @@ #include "cpu_dynarmic.hpp" #include "arm_defs.hpp" -CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel, *this) { +CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel) { cp15 = std::make_shared(); Dynarmic::A32::UserConfig config;