Hook up KTimer to scheduler

This commit is contained in:
wheremyfoodat
2024-01-22 04:04:05 +02:00
parent fa82dad38d
commit 0be099d1ea
7 changed files with 96 additions and 27 deletions

View File

@@ -126,7 +126,7 @@ class CPU {
Emulator& emu;
public:
static constexpr u64 ticksPerSec = 268111856;
static constexpr u64 ticksPerSec = Scheduler::arm11Clock;
CPU(Memory& mem, Kernel& kernel, Emulator& emu);
void reset();
@@ -175,6 +175,10 @@ class CPU {
return scheduler.currentTimestamp;
}
Scheduler& getScheduler() {
return scheduler;
}
void clearCache() { jit->ClearCache(); }
void runFrame();
};