Reorganize emu folder, update S-SMP system infra

This commit is contained in:
scawful
2023-08-26 01:59:57 -04:00
parent 758056dc98
commit 3d793c452d
19 changed files with 1054 additions and 238 deletions

View File

@@ -74,8 +74,7 @@ const int kCpuClockSpeed = 21477272; // 21.477272 MHz
class CPU : public Memory, public Loggable {
public:
explicit CPU(Memory& mem, VirtualClock& vclock)
: memory(mem), clock(vclock) {}
explicit CPU(Memory& mem, Clock& vclock) : memory(mem), clock(vclock) {}
void Init() {
clock.SetFrequency(kCpuClockSpeed);
@@ -698,7 +697,7 @@ class CPU : public Memory, public Loggable {
uint8_t at(int i) const override { return 0; }
Memory& memory;
VirtualClock& clock;
Clock& clock;
};
} // namespace emu