summaryrefslogtreecommitdiff
path: root/src/core/core_cpu.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-25 16:04:53 -0400
committerGravatar Lioncash2018-09-25 16:04:56 -0400
commit598e4d2f6ccfc3dc774a28be53d8b1d78ebbd08d (patch)
tree1d43801463284752d6ecec43c9a1e7850caef607 /src/core/core_cpu.cpp
parentkernel/scheduler: Take ARM_Interface instance by reference in the constructor (diff)
downloadyuzu-598e4d2f6ccfc3dc774a28be53d8b1d78ebbd08d.tar.gz
yuzu-598e4d2f6ccfc3dc774a28be53d8b1d78ebbd08d.tar.xz
yuzu-598e4d2f6ccfc3dc774a28be53d8b1d78ebbd08d.zip
core_cpu: Make arm_interface instances a std::unique_ptr
This is only exposed by reference, so we can just make it a unique pointer to get rid of the need to also use reference counting for the pointer.
Diffstat (limited to 'src/core/core_cpu.cpp')
-rw-r--r--src/core/core_cpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp
index 0140e9713..265f8ed9c 100644
--- a/src/core/core_cpu.cpp
+++ b/src/core/core_cpu.cpp
@@ -55,13 +55,13 @@ Cpu::Cpu(std::shared_ptr<ExclusiveMonitor> exclusive_monitor,
55 55
56 if (Settings::values.use_cpu_jit) { 56 if (Settings::values.use_cpu_jit) {
57#ifdef ARCHITECTURE_x86_64 57#ifdef ARCHITECTURE_x86_64
58 arm_interface = std::make_shared<ARM_Dynarmic>(exclusive_monitor, core_index); 58 arm_interface = std::make_unique<ARM_Dynarmic>(exclusive_monitor, core_index);
59#else 59#else
60 arm_interface = std::make_shared<ARM_Unicorn>(); 60 arm_interface = std::make_unique<ARM_Unicorn>();
61 LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); 61 LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available");
62#endif 62#endif
63 } else { 63 } else {
64 arm_interface = std::make_shared<ARM_Unicorn>(); 64 arm_interface = std::make_unique<ARM_Unicorn>();
65 } 65 }
66 66
67 scheduler = std::make_shared<Kernel::Scheduler>(*arm_interface); 67 scheduler = std::make_shared<Kernel::Scheduler>(*arm_interface);