diff options
| author | 2018-05-10 19:34:21 -0400 | |
|---|---|---|
| committer | 2018-05-10 19:34:54 -0400 | |
| commit | 811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2 (patch) | |
| tree | 3cc967ae810ea4f8c485f2609cdcb7ba28fb6b63 /src | |
| parent | thread: Rename mask to affinity_masks. (diff) | |
| download | yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.gz yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.xz yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.zip | |
core: Add several missing docstrings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/core.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 6de707271..f90f085ad 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -106,26 +106,34 @@ public: | |||
| 106 | /// Prepare the core emulation for a reschedule | 106 | /// Prepare the core emulation for a reschedule |
| 107 | void PrepareReschedule(); | 107 | void PrepareReschedule(); |
| 108 | 108 | ||
| 109 | /// Gets and resets core performance statistics | ||
| 109 | PerfStats::Results GetAndResetPerfStats(); | 110 | PerfStats::Results GetAndResetPerfStats(); |
| 110 | 111 | ||
| 112 | /// Gets an ARM interface to the CPU core that is currently running | ||
| 111 | ARM_Interface& CurrentArmInterface() { | 113 | ARM_Interface& CurrentArmInterface() { |
| 112 | return CurrentCpuCore().ArmInterface(); | 114 | return CurrentCpuCore().ArmInterface(); |
| 113 | } | 115 | } |
| 114 | 116 | ||
| 117 | /// Gets an ARM interface to the CPU core with the specified index | ||
| 115 | ARM_Interface& ArmInterface(size_t core_index); | 118 | ARM_Interface& ArmInterface(size_t core_index); |
| 116 | 119 | ||
| 120 | /// Gets a CPU interface to the CPU core with the specified index | ||
| 117 | Cpu& CpuCore(size_t core_index); | 121 | Cpu& CpuCore(size_t core_index); |
| 118 | 122 | ||
| 123 | /// Gets the GPU interface | ||
| 119 | Tegra::GPU& GPU() { | 124 | Tegra::GPU& GPU() { |
| 120 | return *gpu_core; | 125 | return *gpu_core; |
| 121 | } | 126 | } |
| 122 | 127 | ||
| 128 | /// Gets the scheduler for the CPU core that is currently running | ||
| 123 | Kernel::Scheduler& CurrentScheduler() { | 129 | Kernel::Scheduler& CurrentScheduler() { |
| 124 | return *CurrentCpuCore().Scheduler(); | 130 | return *CurrentCpuCore().Scheduler(); |
| 125 | } | 131 | } |
| 126 | 132 | ||
| 133 | /// Gets the scheduler for the CPU core with the specified index | ||
| 127 | const std::shared_ptr<Kernel::Scheduler>& Scheduler(size_t core_index); | 134 | const std::shared_ptr<Kernel::Scheduler>& Scheduler(size_t core_index); |
| 128 | 135 | ||
| 136 | /// Gets the current process | ||
| 129 | Kernel::SharedPtr<Kernel::Process>& CurrentProcess() { | 137 | Kernel::SharedPtr<Kernel::Process>& CurrentProcess() { |
| 130 | return current_process; | 138 | return current_process; |
| 131 | } | 139 | } |