summaryrefslogtreecommitdiff
path: root/src/core/core_cpu.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-17 18:15:09 -0400
committerGravatar Lioncash2018-09-17 18:16:55 -0400
commit4a84986bc3a7cd14c40b36f084388baad6fbbd62 (patch)
tree44c01b70e77f91fb4cfc078e63c637bbde5a8d10 /src/core/core_cpu.cpp
parentMerge pull request #1311 from FernandoS27/fast-swizzle (diff)
downloadyuzu-4a84986bc3a7cd14c40b36f084388baad6fbbd62.tar.gz
yuzu-4a84986bc3a7cd14c40b36f084388baad6fbbd62.tar.xz
yuzu-4a84986bc3a7cd14c40b36f084388baad6fbbd62.zip
core/core_cpu: Replace exclusive monitor include with forward declaration
We don't need to include this as a dependency within the header. A regular forward declaration will suffice here.
Diffstat (limited to 'src/core/core_cpu.cpp')
-rw-r--r--src/core/core_cpu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp
index 15d60cc8a..21568ad50 100644
--- a/src/core/core_cpu.cpp
+++ b/src/core/core_cpu.cpp
@@ -9,6 +9,7 @@
9#ifdef ARCHITECTURE_x86_64 9#ifdef ARCHITECTURE_x86_64
10#include "core/arm/dynarmic/arm_dynarmic.h" 10#include "core/arm/dynarmic/arm_dynarmic.h"
11#endif 11#endif
12#include "core/arm/exclusive_monitor.h"
12#include "core/arm/unicorn/arm_unicorn.h" 13#include "core/arm/unicorn/arm_unicorn.h"
13#include "core/core_cpu.h" 14#include "core/core_cpu.h"
14#include "core/core_timing.h" 15#include "core/core_timing.h"
@@ -66,6 +67,8 @@ Cpu::Cpu(std::shared_ptr<ExclusiveMonitor> exclusive_monitor,
66 scheduler = std::make_shared<Kernel::Scheduler>(arm_interface.get()); 67 scheduler = std::make_shared<Kernel::Scheduler>(arm_interface.get());
67} 68}
68 69
70Cpu::~Cpu() = default;
71
69std::shared_ptr<ExclusiveMonitor> Cpu::MakeExclusiveMonitor(std::size_t num_cores) { 72std::shared_ptr<ExclusiveMonitor> Cpu::MakeExclusiveMonitor(std::size_t num_cores) {
70 if (Settings::values.use_cpu_jit) { 73 if (Settings::values.use_cpu_jit) {
71#ifdef ARCHITECTURE_x86_64 74#ifdef ARCHITECTURE_x86_64