From a85caaee1d530429ec1c11e9f5ea3a42597443c6 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 1 Sep 2017 21:24:43 +0300 Subject: [PATCH] Set PPU stack bounds --- rpcs3/Emu/Cell/PPUThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 22c811fb36..4486b051cd 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -578,7 +578,7 @@ ppu_thread::~ppu_thread() ppu_thread::ppu_thread(const std::string& name, u32 prio, u32 stack) : cpu_thread(idm::last_id()) , prio(prio) - , stack_size(std::max(stack, 0x4000)) + , stack_size(stack ? ::align(std::min(stack, 0x100000), 0x1000) : 0x4000) , stack_addr(0) , start_time(get_system_time()) , m_name(name)