diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-25 16:04:53 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-25 16:04:56 -0400 |
| commit | cf3e25a3c6995dc1136d63fbc5e3015648af26f9 (patch) | |
| tree | 1d43801463284752d6ecec43c9a1e7850caef607 /src/core/core_cpu.cpp | |
| parent | 4ebca28342f2d1ad54ab1fde1196ec573626a17f (diff) | |
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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<ExclusiveMonitor> exclusive_monitor, if (Settings::values.use_cpu_jit) { #ifdef ARCHITECTURE_x86_64 - arm_interface = std::make_shared<ARM_Dynarmic>(exclusive_monitor, core_index); + arm_interface = std::make_unique<ARM_Dynarmic>(exclusive_monitor, core_index); #else - arm_interface = std::make_shared<ARM_Unicorn>(); + arm_interface = std::make_unique<ARM_Unicorn>(); LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); #endif } else { - arm_interface = std::make_shared<ARM_Unicorn>(); + arm_interface = std::make_unique<ARM_Unicorn>(); } scheduler = std::make_shared<Kernel::Scheduler>(*arm_interface); |
