diff options
| author | Felix Queißner <git@mq32.de> | 2024-10-04 22:53:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 13:53:28 -0700 |
| commit | 7c74edec8d7d97677033d8a688e02ee32d82ab43 (patch) | |
| tree | 8704f54815734e78861274fe8734b263082d07c5 /src/Sema.zig | |
| parent | 3e62cb5c90608580558fff1af24af68735778392 (diff) | |
| download | zig-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 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index ea409be6ab..1b9657ce9d 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -37672,6 +37672,9 @@ pub fn analyzeAsAddressSpace( .constant => is_gpu and (ctx == .constant), // TODO this should also check how many flash banks the cpu has .flash, .flash1, .flash2, .flash3, .flash4, .flash5 => arch == .avr, + + .cog, .hub => arch.isPropeller(), + .lut => (arch == .propeller2), }; if (!supported) { |
