diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp index 0140e97133..265f8ed9cc 100644 --- a/src/core/core_cpu.cpp +++ b/src/core/core_cpu.cpp @@ -55,13 +55,13 @@ Cpu::Cpu(std::shared_ptr exclusive_monitor, if (Settings::values.use_cpu_jit) { #ifdef ARCHITECTURE_x86_64 - arm_interface = std::make_shared(exclusive_monitor, core_index); + arm_interface = std::make_unique(exclusive_monitor, core_index); #else - arm_interface = std::make_shared(); + arm_interface = std::make_unique(); LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); #endif } else { - arm_interface = std::make_shared(); + arm_interface = std::make_unique(); } scheduler = std::make_shared(*arm_interface); diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index 6855329654..ee7e04abc8 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -76,7 +76,7 @@ public: private: void Reschedule(); - std::shared_ptr arm_interface; + std::unique_ptr arm_interface; std::shared_ptr cpu_barrier; std::shared_ptr scheduler;