aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-08-24 21:23:45 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-08-25 16:15:17 +0200
commit5d019abe4ec70373db7a75c2a8a3e2d76939817c (patch)
tree4ca5e04afceab7cc8e363d7adfe0436f54a3e82a /src/Zcu.zig
parent12686d9b7df8fe4c2663cd8e2136991dc3cf661c (diff)
downloadzig-5d019abe4ec70373db7a75c2a8a3e2d76939817c.tar.gz
zig-5d019abe4ec70373db7a75c2a8a3e2d76939817c.zip
start adding big endian RISC-V support
The big endian RISC-V effort is mostly driven by MIPS (the company) which is pivoting to RISC-V, and presumably needs a big endian variant to fill the niche that big endian MIPS (the ISA) did. GCC already supports these targets, but LLVM support will only appear in 22; this commit just adds the necessary target knowledge and checks on our end.
Diffstat (limited to 'src/Zcu.zig')
-rw-r--r--src/Zcu.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig
index 53da90a9c2..97d1b821f1 100644
--- a/src/Zcu.zig
+++ b/src/Zcu.zig
@@ -3850,6 +3850,7 @@ pub fn atomicPtrAlignment(
.powerpc,
.powerpcle,
.riscv32,
+ .riscv32be,
.sparc,
.thumb,
.thumbeb,
@@ -3874,6 +3875,7 @@ pub fn atomicPtrAlignment(
.powerpc64,
.powerpc64le,
.riscv64,
+ .riscv64be,
.sparc64,
.s390x,
.wasm64,