Merge pull request #751 from Subv/tpidr_el0

CPU: Save and restore the TPIDR_EL0 system register on every context switch
This commit is contained in:
bunnei 2018-07-21 10:48:30 -07:00 committed by GitHub
commit fe2498a650
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 0 deletions

View file

@ -312,6 +312,7 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point,
thread->status = ThreadStatus::Dormant;
thread->entry_point = entry_point;
thread->stack_top = stack_top;
thread->tpidr_el0 = 0;
thread->nominal_priority = thread->current_priority = priority;
thread->last_running_ticks = CoreTiming::GetTicks();
thread->processor_id = processor_id;