mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-10 22:28:02 -05:00
Memory: Do correct Phys->Virt address translation for non-APP linheap
This commit is contained in:
@ -130,9 +130,11 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) {
|
||||
Kernel::SetupMainThread(codeset->entrypoint, main_thread_priority);
|
||||
}
|
||||
|
||||
VAddr Process::GetLinearHeapAreaAddress() const {
|
||||
return kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR;
|
||||
}
|
||||
VAddr Process::GetLinearHeapBase() const {
|
||||
return (kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR)
|
||||
+ memory_region->base;
|
||||
return GetLinearHeapAreaAddress() + memory_region->base;
|
||||
}
|
||||
|
||||
VAddr Process::GetLinearHeapLimit() const {
|
||||
|
Reference in New Issue
Block a user