From 839a25e1291b6d99a30c5259aee31c168aec04bf Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 7 Aug 2024 03:59:47 +0300 Subject: [PATCH] Bump scratch to 8k --- rpcs3/Emu/Cell/PPUThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index fff0aae0f9..1343e1b905 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -381,7 +381,7 @@ const auto ppu_gateway = build_function_asm("ppu_gateway", // GHC scratchpad mem. If managed correctly (i.e no returns ever), GHC functions should never require a stack frame. // We allocate a slab to use for all functions as they tail-call into each other. - c.sub(a64::sp, a64::sp, Imm(4096)); + c.sub(a64::sp, a64::sp, Imm(8192)); // Execute LLE call c.blr(call_target); @@ -390,7 +390,7 @@ const auto ppu_gateway = build_function_asm("ppu_gateway", c.bind(hv_ctx_pc); // Clear scratchpad allocation - c.add(a64::sp, a64::sp, Imm(4096)); + c.add(a64::sp, a64::sp, Imm(8192)); c.ldr(a64::x20, arm::Mem(a64::sp)); c.add(a64::sp, a64::sp, Imm(16));