More correct initialization of COP0

This commit is contained in:
SimoneN64
2023-03-19 15:18:27 +01:00
parent f2e0bda841
commit 7a4c3f2f83

View File

@@ -10,11 +10,17 @@ Cop0::Cop0() {
void Cop0::Reset() { void Cop0::Reset() {
cause.raw = 0xB000007C; cause.raw = 0xB000007C;
status.raw = 0x34000000; status.raw = 0;
status.cu0 = 1;
status.cu1 = 1;
status.fr = 1;
PRId = 0x00000B22; PRId = 0x00000B22;
Config = 0x7006E463; Config = 0x7006E463;
EPC = 0xFFFFFFFFFFFFFFFF; EPC = 0xFFFFFFFFFFFFFFFF;
ErrorEPC = 0xFFFFFFFFFFFFFFFF; ErrorEPC = 0xFFFFFFFFFFFFFFFF;
wired = 0;
index = 63;
badVaddr = 0xFFFFFFFFFFFFFFFF;
} }
u32 Cop0::GetReg32(u8 addr) { u32 Cop0::GetReg32(u8 addr) {