summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-28 22:37:31 +0100
committerLioncash <mathew1800@gmail.com>2018-10-28 22:44:58 +0100
commitb77f571d20e8e5172159b55e5dd7c6040a6cdef7 (patch)
tree0d4976109f09f481a2ab5138d9a8f88185c69d86 /src/core/core.cpp
parentMerge pull request #1607 from FearlessTobi/patch-3 (diff)
downloadyuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.tar
yuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.tar.gz
yuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.tar.bz2
yuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.tar.lz
yuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.tar.xz
yuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.tar.zst
yuzu-b77f571d20e8e5172159b55e5dd7c6040a6cdef7.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.cpp28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 7cb86ed92..6c32154db 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -312,6 +312,10 @@ Cpu& System::CurrentCpuCore() {
return impl->CurrentCpuCore();
}
+const Cpu& System::CurrentCpuCore() const {
+ return impl->CurrentCpuCore();
+}
+
System::ResultStatus System::RunLoop(bool tight_loop) {
return impl->RunLoop(tight_loop);
}
@@ -342,7 +346,11 @@ PerfStatsResults System::GetAndResetPerfStats() {
return impl->GetAndResetPerfStats();
}
-Core::TelemetrySession& System::TelemetrySession() const {
+TelemetrySession& System::TelemetrySession() {
+ return *impl->telemetry_session;
+}
+
+const TelemetrySession& System::TelemetrySession() const {
return *impl->telemetry_session;
}
@@ -350,7 +358,11 @@ ARM_Interface& System::CurrentArmInterface() {
return CurrentCpuCore().ArmInterface();
}
-std::size_t System::CurrentCoreIndex() {
+const ARM_Interface& System::CurrentArmInterface() const {
+ return CurrentCpuCore().ArmInterface();
+}
+
+std::size_t System::CurrentCoreIndex() const {
return CurrentCpuCore().CoreIndex();
}
@@ -358,6 +370,10 @@ Kernel::Scheduler& System::CurrentScheduler() {
return CurrentCpuCore().Scheduler();
}
+const Kernel::Scheduler& System::CurrentScheduler() const {
+ return CurrentCpuCore().Scheduler();
+}
+
Kernel::Scheduler& System::Scheduler(std::size_t core_index) {
return CpuCore(core_index).Scheduler();
}
@@ -378,6 +394,10 @@ ARM_Interface& System::ArmInterface(std::size_t core_index) {
return CpuCore(core_index).ArmInterface();
}
+const ARM_Interface& System::ArmInterface(std::size_t core_index) const {
+ return CpuCore(core_index).ArmInterface();
+}
+
Cpu& System::CpuCore(std::size_t core_index) {
ASSERT(core_index < NUM_CPU_CORES);
return *impl->cpu_cores[core_index];
@@ -392,6 +412,10 @@ ExclusiveMonitor& System::Monitor() {
return *impl->cpu_exclusive_monitor;
}
+const ExclusiveMonitor& System::Monitor() const {
+ return *impl->cpu_exclusive_monitor;
+}
+
Tegra::GPU& System::GPU() {
return *impl->gpu_core;
}