stage2 sparcv9: Add param/return regs list

This commit is contained in:
Koakuma 2022-03-17 02:24:21 +07:00
parent ac50ac699f
commit 7579f14e0f

View File

@ -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"};