aboutsummaryrefslogtreecommitdiff
path: root/lib/std/elf.zig
diff options
context:
space:
mode:
authorFelix Queißner <git@mq32.de>2024-10-04 22:53:28 +0200
committerGitHub <noreply@github.com>2024-10-04 13:53:28 -0700
commit7c74edec8d7d97677033d8a688e02ee32d82ab43 (patch)
tree8704f54815734e78861274fe8734b263082d07c5 /lib/std/elf.zig
parent3e62cb5c90608580558fff1af24af68735778392 (diff)
downloadzig-7c74edec8d7d97677033d8a688e02ee32d82ab43.tar.gz
zig-7c74edec8d7d97677033d8a688e02ee32d82ab43.zip
Adds new cpu architectures propeller1 and propeller2. (#21563)
* Adds new cpu architectures propeller1 and propeller2. These cpu architectures allow targeting the Parallax Propeller 1 and Propeller 2, which are both very special microcontrollers with 512 registers and 8 cpu cores. Resolves #21559 * Adds std.elf.EM.PROPELLER and std.elf.EM.PROPELLER2 * Fixes missing switch prongs in src/codegen/llvm.zig * Fixes order in std.Target.Arch --------- Co-authored-by: Felix "xq" Queißner <git@random-projects.net>
Diffstat (limited to 'lib/std/elf.zig')
-rw-r--r--lib/std/elf.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/std/elf.zig b/lib/std/elf.zig
index d948e8fcc5..792694dffb 100644
--- a/lib/std/elf.zig
+++ b/lib/std/elf.zig
@@ -1628,6 +1628,14 @@ pub const EM = enum(u16) {
/// Adapteva's Epiphany architecture
ADAPTEVA_EPIPHANY = 0x1223,
+ /// Parallax Propeller (P1)
+ /// This value is an unofficial ELF value used in: https://github.com/parallaxinc/propgcc
+ PROPELLER = 0x5072,
+
+ /// Parallax Propeller 2 (P2)
+ /// This value is an unofficial ELF value used in: https://github.com/ne75/llvm-project
+ PROPELLER2 = 300,
+
_,
};