yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

fixed bug in Memory::GetPointer

This commit is contained in:
bunnei 2014-04-17 21:40:42 -04:00
parent fb026f6b46
commit 33e7d97d46
1 changed files with 2 additions and 2 deletions

View File

@ -103,11 +103,11 @@ u8 *GetPointer(const u32 addr) {
const u32 vaddr = _AddressPhysicalToVirtual(addr);
// FCRAM - GSP heap
if ((vaddr > HEAP_GSP_VADDR) && (vaddr < HEAP_GSP_VADDR_END)) {
if ((vaddr >= HEAP_GSP_VADDR) && (vaddr < HEAP_GSP_VADDR_END)) {
return g_heap_gsp + (vaddr & HEAP_GSP_MASK);
// FCRAM - application heap
} else if ((vaddr > HEAP_VADDR) && (vaddr < HEAP_VADDR_END)) {
} else if ((vaddr >= HEAP_VADDR) && (vaddr < HEAP_VADDR_END)) {
return g_heap + (vaddr & HEAP_MASK);
} else {