Hacks to let the kernel access the CPU and vice versa (TODO: Fix)

This commit is contained in:
wheremyfoodat 2022-09-20 03:49:53 +03:00
parent 0d9088eddc
commit 1678cd6172
6 changed files with 18 additions and 8 deletions

View file

@ -8,6 +8,8 @@
#include "kernel.hpp"
#include "memory.hpp"
class CPU;
class MyEnvironment final : public Dynarmic::A32::UserCallbacks {
public:
u64 ticksLeft = 0;
@ -89,7 +91,7 @@ public:
return ticksLeft;
}
MyEnvironment(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
MyEnvironment(Memory& mem, Kernel& kernel, CPU& cpu) : mem(mem), kernel(kernel) {}
};
class CPU {