[Kernel] Implement GetSystemTick

This commit is contained in:
wheremyfoodat 2022-09-21 00:48:51 +03:00
parent 5bcdf4d063
commit cbefe3c2d0
4 changed files with 19 additions and 0 deletions

View file

@ -19,6 +19,7 @@ CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel, *this) {
void CPU::reset() {
setCPSR(CPSR::UserMode);
setFPSCR(FPSCR::ThreadDefault);
env.totalTicks = 0;
cp15->reset();
cp15->setTLSBase(VirtualAddrs::TLSBase); // Set cp15 TLS pointer to the main thread's thread-local storage