mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-06 11:01:38 +12:00
Hacks to let the kernel access the CPU and vice versa (TODO: Fix)
This commit is contained in:
parent
0d9088eddc
commit
1678cd6172
6 changed files with 18 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue