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

@ -1,7 +1,7 @@
#ifdef CPU_DYNARMIC
#include "cpu_dynarmic.hpp"
CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel) {
CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel, *this) {
cp15 = std::make_shared<CP15>();
Dynarmic::A32::UserConfig config;