diff options
author | bunnei <bunneidev@gmail.com> | 2018-05-11 01:34:21 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-05-11 01:34:54 +0200 |
commit | 811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2 (patch) | |
tree | 3cc967ae810ea4f8c485f2609cdcb7ba28fb6b63 /src/core | |
parent | thread: Rename mask to affinity_masks. (diff) | |
download | yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.gz yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.bz2 yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.lz yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.xz yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.tar.zst yuzu-811dae12f9e1c0eb5c19f6c6a8e75b1e6260abb2.zip |
Diffstat (limited to 'src/core')
-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: /// Prepare the core emulation for a reschedule void PrepareReschedule(); + /// Gets and resets core performance statistics PerfStats::Results GetAndResetPerfStats(); + /// Gets an ARM interface to the CPU core that is currently running ARM_Interface& CurrentArmInterface() { return CurrentCpuCore().ArmInterface(); } + /// Gets an ARM interface to the CPU core with the specified index ARM_Interface& ArmInterface(size_t core_index); + /// Gets a CPU interface to the CPU core with the specified index Cpu& CpuCore(size_t core_index); + /// Gets the GPU interface Tegra::GPU& GPU() { return *gpu_core; } + /// Gets the scheduler for the CPU core that is currently running Kernel::Scheduler& CurrentScheduler() { return *CurrentCpuCore().Scheduler(); } + /// Gets the scheduler for the CPU core with the specified index const std::shared_ptr<Kernel::Scheduler>& Scheduler(size_t core_index); + /// Gets the current process Kernel::SharedPtr<Kernel::Process>& CurrentProcess() { return current_process; } |