mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Properly reset memory arena on reset
This commit is contained in:
parent
4ec776f60e
commit
19769e891f
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ void Memory::reset() {
|
||||||
usedUserMemory = u32(0_MB);
|
usedUserMemory = u32(0_MB);
|
||||||
usedSystemMemory = u32(0_MB);
|
usedSystemMemory = u32(0_MB);
|
||||||
|
|
||||||
|
if (useFastmem) {
|
||||||
|
// Unmap any mappings when resetting
|
||||||
|
arena->Unmap(0, 4_GB, false);
|
||||||
|
}
|
||||||
|
|
||||||
for (u32 i = 0; i < totalPageCount; i++) {
|
for (u32 i = 0; i < totalPageCount; i++) {
|
||||||
readTable[i] = 0;
|
readTable[i] = 0;
|
||||||
writeTable[i] = 0;
|
writeTable[i] = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue