diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-26 21:14:18 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-01-27 14:54:11 +0100 |
commit | 2d1984c20c75e03ec79eeb3806b12efa1679b977 (patch) | |
tree | 79a457c2fb0cabd810eac92f3cb245d344ed9c3b /src/core/hle/kernel/physical_core.cpp | |
parent | System: Correct PrepareReschedule. (diff) | |
download | yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.gz yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.bz2 yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.lz yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.xz yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.tar.zst yuzu-2d1984c20c75e03ec79eeb3806b12efa1679b977.zip |
Diffstat (limited to 'src/core/hle/kernel/physical_core.cpp')
-rw-r--r-- | src/core/hle/kernel/physical_core.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/kernel/physical_core.cpp b/src/core/hle/kernel/physical_core.cpp index 7d84e3d28..896a1a87a 100644 --- a/src/core/hle/kernel/physical_core.cpp +++ b/src/core/hle/kernel/physical_core.cpp @@ -17,18 +17,21 @@ namespace Kernel { -PhysicalCore::PhysicalCore(Core::System& system, KernelCore& kernel, std::size_t id, Core::ExclusiveMonitor& exclusive_monitor) +PhysicalCore::PhysicalCore(Core::System& system, KernelCore& kernel, std::size_t id, + Core::ExclusiveMonitor& exclusive_monitor) : core_index{id}, kernel{kernel} { #ifdef ARCHITECTURE_x86_64 - arm_interface = std::make_unique<Core::ARM_Dynarmic>(system, exclusive_monitor, core_index); + arm_interface = std::make_shared<Core::ARM_Dynarmic>(system, exclusive_monitor, core_index); #else - arm_interface = std::make_unique<Core::ARM_Unicorn>(system); + arm_interface = std::make_shared<Core::ARM_Unicorn>(system); LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); #endif - scheduler = std::make_unique<Kernel::Scheduler>(system, *arm_interface, core_index); + scheduler = std::make_shared<Kernel::Scheduler>(system, *arm_interface, core_index); } +PhysicalCore::~PhysicalCore() = default; + void PhysicalCore::Run() { arm_interface->Run(); arm_interface->ClearExclusiveState(); |