summaryrefslogtreecommitdiff
path: root/src/core/core_cpu.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-25 16:00:14 -0400
committerGravatar Lioncash2018-09-25 16:00:17 -0400
commita58eefa7e42f156e4a9efead04c6d814286c2f10 (patch)
tree36cee4834cb7c187a3a136b82d3ed0687b086185 /src/core/core_cpu.cpp
parentMerge pull request #1378 from lioncash/thread (diff)
downloadyuzu-a58eefa7e42f156e4a9efead04c6d814286c2f10.tar.gz
yuzu-a58eefa7e42f156e4a9efead04c6d814286c2f10.tar.xz
yuzu-a58eefa7e42f156e4a9efead04c6d814286c2f10.zip
kernel/scheduler: Take ARM_Interface instance by reference in the constructor
It doesn't make sense to allow a scheduler to be constructed around a null pointer.
Diffstat (limited to 'src/core/core_cpu.cpp')
-rw-r--r--src/core/core_cpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp
index 21568ad50..0140e9713 100644
--- a/src/core/core_cpu.cpp
+++ b/src/core/core_cpu.cpp
@@ -64,7 +64,7 @@ Cpu::Cpu(std::shared_ptr<ExclusiveMonitor> exclusive_monitor,
64 arm_interface = std::make_shared<ARM_Unicorn>(); 64 arm_interface = std::make_shared<ARM_Unicorn>();
65 } 65 }
66 66
67 scheduler = std::make_shared<Kernel::Scheduler>(arm_interface.get()); 67 scheduler = std::make_shared<Kernel::Scheduler>(*arm_interface);
68} 68}
69 69
70Cpu::~Cpu() = default; 70Cpu::~Cpu() = default;