aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/timer.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-22 01:27:23 -0500
committerLioncash <mathew1800@gmail.com>2018-11-22 04:28:19 -0500
commit7128bf879f0669a3c889e3928921ad4689a267e0 (patch)
tree388c419ff948b26298c057991a049c271f7b31c7 /src/core/hle/kernel/timer.cpp
parentf467d8e8a3a894120464136e35c2d0bd88f6c652 (diff)
core: Relocate CPU core management to its own class
Keeps the CPU-specific behavior from being spread throughout the main System class. This will also act as the home to contain member functions that perform operations on all cores. The reason for this being that the following pattern is sort of prevalent throughout sections of the codebase: If clearing the instruction cache for all 4 cores is necessary: Core::System::GetInstance().ArmInterface(0).ClearInstructionCache(); Core::System::GetInstance().ArmInterface(1).ClearInstructionCache(); Core::System::GetInstance().ArmInterface(2).ClearInstructionCache(); Core::System::GetInstance().ArmInterface(3).ClearInstructionCache(); This is kind of... well, silly to copy around whenever it's needed. especially when it can be reduced down to a single line. This change also puts the basics in place to begin "ungrafting" all of the forwarding member functions from the System class that are used to access CPU state or invoke CPU-specific behavior. As such, this change itself makes no changes to the direct external interface of System. This will be covered by another changeset.
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
0 files changed, 0 insertions, 0 deletions