@@ -1079,6 +1079,7 @@ pub fn toElfMachine(target: Target) std.elf.EM {
10791079 .m68k = > .@"68K" ,
10801080 .mips , .mips64 , .mipsel , .mips64el = > .MIPS ,
10811081 .msp430 = > .MSP430 ,
1082+ .or1k = > .OR1K ,
10821083 .powerpc , .powerpcle = > .PPC ,
10831084 .powerpc64 , .powerpc64le = > .PPC64 ,
10841085 .propeller = > .PROPELLER ,
@@ -1133,6 +1134,7 @@ pub fn toCoffMachine(target: Target) std.coff.MachineType {
11331134 .mips64 ,
11341135 .mips64el ,
11351136 .msp430 ,
1137+ .or1k ,
11361138 .nvptx ,
11371139 .nvptx64 ,
11381140 .powerpc ,
@@ -1357,6 +1359,7 @@ pub const Cpu = struct {
13571359 mips64 ,
13581360 mips64el ,
13591361 msp430 ,
1362+ or1k ,
13601363 nvptx ,
13611364 nvptx64 ,
13621365 powerpc ,
@@ -1565,6 +1568,7 @@ pub const Cpu = struct {
15651568 .m68k ,
15661569 .mips ,
15671570 .mips64 ,
1571+ .or1k ,
15681572 .powerpc ,
15691573 .powerpc64 ,
15701574 .thumbeb ,
@@ -1815,6 +1819,9 @@ pub const Cpu = struct {
18151819 .msp430_eabi ,
18161820 = > &.{.msp430 },
18171821
1822+ .or1k_sysv ,
1823+ = > &.{.or1k },
1824+
18181825 .propeller_sysv ,
18191826 = > &.{.propeller },
18201827
@@ -1911,6 +1918,7 @@ pub const Cpu = struct {
19111918 .xtensa = > & xtensa .cpu .generic ,
19121919
19131920 .kalimba ,
1921+ .or1k ,
19141922 = > & S .generic_model ,
19151923 };
19161924 }
@@ -2598,6 +2606,7 @@ pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 {
25982606 .m68k ,
25992607 .mips ,
26002608 .mipsel ,
2609+ .or1k ,
26012610 .powerpc ,
26022611 .powerpcle ,
26032612 .riscv32 ,
@@ -3114,6 +3123,7 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 {
31143123 .csky ,
31153124 .x86 ,
31163125 .xcore ,
3126+ .or1k ,
31173127 .kalimba ,
31183128 .xtensa ,
31193129 .propeller ,
@@ -3204,6 +3214,7 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {
32043214
32053215 .csky ,
32063216 .xcore ,
3217+ .or1k ,
32073218 .kalimba ,
32083219 .xtensa ,
32093220 .propeller ,
@@ -3276,6 +3287,7 @@ pub fn cMaxIntAlignment(target: std.Target) u16 {
32763287 .hexagon ,
32773288 .mips ,
32783289 .mipsel ,
3290+ .or1k ,
32793291 .powerpc ,
32803292 .powerpcle ,
32813293 .riscv32 ,
@@ -3372,6 +3384,7 @@ pub fn cCallingConvention(target: Target) ?std.builtin.CallingConvention {
33723384 else
33733385 .{ .m68k_sysv = .{} },
33743386 .msp430 = > .{ .msp430_eabi = .{} },
3387+ .or1k = > .{ .or1k_sysv = .{} },
33753388 .propeller = > .{ .propeller_sysv = .{} },
33763389 .s390x = > .{ .s390x_sysv = .{} },
33773390 .ve = > .{ .ve_sysv = .{} },
0 commit comments