commit 5b7eba95bae1a954b7737aec301280cc4a63b677 (tree)
parent 51dc4b05494e5b6ddf32ce38cca70b1af54b091d
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Thu, 17 Oct 2024 01:54:10 +0200
std.Target: Use gfx600 as the generic CPU model for amdgcn.
This is the first model that was actually in the GCN family.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -1797,6 +1797,7 @@ pub const Cpu = struct {
};
};
return switch (arch) {
+ .amdgcn => &amdgpu.cpu.gfx600,
.arc => &arc.cpu.generic,
.arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic,
.aarch64, .aarch64_be => &aarch64.cpu.generic,
@@ -1815,7 +1816,6 @@ pub const Cpu = struct {
.powerpc64, .powerpc64le => &powerpc.cpu.ppc64,
.propeller1 => &propeller.cpu.generic,
.propeller2 => &propeller.cpu.generic,
- .amdgcn => &amdgpu.cpu.generic,
.riscv32 => &riscv.cpu.generic_rv32,
.riscv64 => &riscv.cpu.generic_rv64,
.spirv, .spirv32, .spirv64 => &spirv.cpu.generic,