mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
ppu: Stack size allocation improvements
This commit is contained in:
parent
3ce18fd960
commit
cbcd06d1dc
3 changed files with 4 additions and 4 deletions
|
|
@ -1544,7 +1544,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
|
|||
case 0x70: primary_stacksize = 1024 * 1024; break; // SYS_PROCESS_PRIMARY_STACK_SIZE_1M
|
||||
default:
|
||||
{
|
||||
primary_stacksize = sz >= 4096 ? ::align(std::min<u32>(sz, 0x100000), 4096) : 0x4000;
|
||||
primary_stacksize = ::align<u32>(std::clamp<u32>(sz, 0x10000, 0x100000), 4096);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue