From 7c74edec8d7d97677033d8a688e02ee32d82ab43 Mon Sep 17 00:00:00 2001 From: Felix Queißner Date: Fri, 4 Oct 2024 22:53:28 +0200 Subject: Adds new cpu architectures propeller1 and propeller2. (#21563) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- lib/std/elf.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/std/elf.zig') 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, + _, }; -- cgit v1.2.3