Commit 7579f14e0f

Koakuma <koachan@protonmail.com>
2022-03-16 20:24:21
stage2 sparcv9: Add param/return regs list
1 parent ac50ac6
Changed files (1)
src
arch
sparcv9
src/arch/sparcv9/abi.zig
@@ -5,5 +5,8 @@ const Register = bits.Register;
 // so no need to do it manually
 pub const callee_preserved_regs = [_]Register{};
 
-// pub const c_abi_int_param_regs = [_]Register{};
-// pub const c_abi_int_return_regs = [_]Register{};
+pub const c_abi_int_param_regs_caller_view = [_]Register{.o0, .o1, .o2, .o3, .o4, .o5};
+pub const c_abi_int_param_regs_callee_view = [_]Register{.@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5"};
+
+pub const c_abi_int_return_regs_caller_view = [_]Register{.o0, .o1, .o2, .o3, .o4, .o5};
+pub const c_abi_int_return_regs_callee_view = [_]Register{.@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5"};