stage2: sparc64: Remove saved_regs_stack_space calculation

SPARC does not have an explicit notion of saving/restoring registers.
The usual windowing mechanism (save/restore/return) already takes care of that
for us.
This commit is contained in:
Koakuma
2022-05-26 13:48:39 +07:00
parent 3923722cc6
commit c5b99267c0

View File

@@ -407,7 +407,7 @@ fn gen(self: *Self) !void {
}
// Backpatch stack offset
const total_stack_size = self.max_end_stack + abi.stack_reserved_area; // TODO + self.saved_regs_stack_space;
const total_stack_size = self.max_end_stack + abi.stack_reserved_area;
const stack_size = mem.alignForwardGeneric(u32, total_stack_size, self.stack_align);
if (math.cast(i13, stack_size)) |size| {
self.mir_instructions.set(save_inst, .{