summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 613a98b4c..89bb2887e 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -141,14 +141,14 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
141 141
142 switch (Settings::values.cpu_core) { 142 switch (Settings::values.cpu_core) {
143 case Settings::CpuCore::Unicorn: 143 case Settings::CpuCore::Unicorn:
144 cpu_core = std::make_unique<ARM_Unicorn>(); 144 cpu_core = std::make_shared<ARM_Unicorn>();
145 break; 145 break;
146 case Settings::CpuCore::Dynarmic: 146 case Settings::CpuCore::Dynarmic:
147 default: 147 default:
148#ifdef ARCHITECTURE_x86_64 148#ifdef ARCHITECTURE_x86_64
149 cpu_core = std::make_unique<ARM_Dynarmic>(); 149 cpu_core = std::make_shared<ARM_Dynarmic>();
150#else 150#else
151 cpu_core = std::make_unique<ARM_Unicorn>(); 151 cpu_core = std::make_shared<ARM_Unicorn>();
152 LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); 152 LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available");
153#endif 153#endif
154 break; 154 break;