core: Replace "AppCore" nomenclature with just "CPU".

This commit is contained in:
bunnei 2016-12-22 00:00:01 -05:00
parent 5ac5cbeab7
commit e26fbfd1d7
11 changed files with 103 additions and 105 deletions

View file

@ -187,7 +187,7 @@ static void SwitchContext(Thread* new_thread) {
// Save context for previous thread
if (previous_thread) {
previous_thread->last_running_ticks = CoreTiming::GetTicks();
Core::AppCore().SaveContext(previous_thread->context);
Core::CPU().SaveContext(previous_thread->context);
if (previous_thread->status == THREADSTATUS_RUNNING) {
// This is only the case when a reschedule is triggered without the current thread
@ -213,8 +213,8 @@ static void SwitchContext(Thread* new_thread) {
// Restores thread to its nominal priority if it has been temporarily changed
new_thread->current_priority = new_thread->nominal_priority;
Core::AppCore().LoadContext(new_thread->context);
Core::AppCore().SetCP15Register(CP15_THREAD_URO, new_thread->GetTLSAddress());
Core::CPU().LoadContext(new_thread->context);
Core::CPU().SetCP15Register(CP15_THREAD_URO, new_thread->GetTLSAddress());
} else {
current_thread = nullptr;
}