Bump scratch to 8k

This commit is contained in:
kd-11
2024-08-07 03:59:47 +03:00
committed by kd-11
parent 7979c5d9eb
commit 839a25e129
+2 -2
View File
@@ -381,7 +381,7 @@ const auto ppu_gateway = build_function_asm<void(*)(ppu_thread*)>("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<void(*)(ppu_thread*)>("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));