diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-25 16:00:14 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-25 16:00:17 -0400 |
| commit | a58eefa7e42f156e4a9efead04c6d814286c2f10 (patch) | |
| tree | 36cee4834cb7c187a3a136b82d3ed0687b086185 /src/core/core_cpu.cpp | |
| parent | 93fea4e17943fa189f30a73c179d8efb64a83318 (diff) | |
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.cpp | 2 |
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, arm_interface = std::make_shared<ARM_Unicorn>(); } - scheduler = std::make_shared<Kernel::Scheduler>(arm_interface.get()); + scheduler = std::make_shared<Kernel::Scheduler>(*arm_interface); } Cpu::~Cpu() = default; |
