mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
cp15 but better
This commit is contained in:
parent
58fe2bcf18
commit
d8cf0e2de2
5 changed files with 36 additions and 7 deletions
|
@ -2,18 +2,19 @@
|
|||
#include "cpu_dynarmic.hpp"
|
||||
|
||||
CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel) {
|
||||
Dynarmic::A32::UserConfig config;
|
||||
cp15 = std::make_shared<CP15>();
|
||||
|
||||
Dynarmic::A32::UserConfig config;
|
||||
config.callbacks = &env;
|
||||
config.coprocessors[15] = std::make_shared<CP15>();
|
||||
config.coprocessors[15] = cp15;
|
||||
jit = std::make_unique<Dynarmic::A32::Jit>(config);
|
||||
}
|
||||
|
||||
void CPU::reset() {
|
||||
// ARM mode, all flags disabled, interrupts and aborts all enabled, user mode
|
||||
|
||||
setCPSR(0x00000010);
|
||||
|
||||
cp15->reset();
|
||||
jit->Reset();
|
||||
jit->ClearCache();
|
||||
jit->Regs().fill(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue