diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-03-30 23:49:22 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-03-30 23:49:22 +0100 |
commit | b9703d2e8f25c0dc20ff709505a8b6888041f4f8 (patch) | |
tree | 7ddbc361ae53adf89a039864d576992e9aacaabe /src | |
parent | 1af74230f1d564f1c893636a180d7c1840e5ad33 (diff) |
fix CP15 control reg init during direct boot (fixes LMNTS demo regression)
Diffstat (limited to 'src')
-rw-r--r-- | src/NDS.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp index dac1773..ae71ad6 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -343,7 +343,7 @@ void SetupDirectBoot() ARM9->CP15Write(0x910, 0x0300000A); ARM9->CP15Write(0x911, 0x00000020); - ARM9->CP15Write(0x100, 0x00050000); + ARM9->CP15Write(0x100, ARM9->CP15Read(0x100) | 0x00050000); ARM9->R[12] = bootparams[1]; ARM9->R[13] = 0x03002F7C; @@ -1532,7 +1532,7 @@ void debug(u32 param) // printf("VRAM %c: %02X\n", 'A'+i, GPU::VRAMCNT[i]); FILE* - shit = fopen("debug/clirc.bin", "wb"); + shit = fopen("debug/lmnts.bin", "wb"); for (u32 i = 0x02000000; i < 0x02400000; i+=4) { u32 val = ARM7Read32(i); |