mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.Target: Return EM_ARC_COMPACT instead of EM_ARC_COMPACT2 for arc.
Also fix an incorrect related comment in start.zig.
This commit is contained in:
parent
2e3599c7d0
commit
59ae51199e
@ -847,7 +847,7 @@ pub fn toElfMachine(target: Target) std.elf.EM {
|
||||
|
||||
return switch (target.cpu.arch) {
|
||||
.amdgcn => .AMDGPU,
|
||||
.arc => .ARC_COMPACT2,
|
||||
.arc => .ARC_COMPACT,
|
||||
.arm, .armeb, .thumb, .thumbeb => .ARM,
|
||||
.aarch64, .aarch64_be => .AARCH64,
|
||||
.avr => .AVR,
|
||||
|
||||
@ -271,8 +271,8 @@ fn _start() callconv(.Naked) noreturn {
|
||||
\\ b %[posixCallMainAndExit]
|
||||
,
|
||||
.arc =>
|
||||
// The `arc` tag currently means ARCv2, which has an unusually low stack alignment
|
||||
// requirement. ARCv3 increases it from 4 to 16, but we don't support ARCv3 yet.
|
||||
// The `arc` tag currently means ARC v1 and v2, which have an unusually low stack
|
||||
// alignment requirement. ARC v3 increases it from 4 to 16, but we don't support v3 yet.
|
||||
\\ mov fp, 0
|
||||
\\ mov blink, 0
|
||||
\\ mov r0, sp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user