authorgravatar for me@gasinfinity.devGasInfinity <me@gasinfinity.dev> 2025-10-29 14:34:58+01:00
committergravatar for me@gasinfinity.devGasInfinity <me@gasinfinity.dev> 2025-10-29 14:34:58+01:00
logfca748ffba4518a205e3ebb46ff6ea062dc5fdcc
treeb631460b618d9ae36e20225599fc6d65d2c88254
parentb409cdf63f3496032bda83a88f54a7684feab92b
signaturebadge-check Signed by SSH key SHA256:p3IHbr0lyK2ekfDC1Zi7dOEV/9T6lGghNawhl5sBnM4

fix: add `i86` cpu in `update_cpu_features`


2 files changed, 10 insertions(+), 1 deletions(-)

lib/std/Target/x86.zig+3-1
...@@ -3084,7 +3084,9 @@ pub const cpu = struct {...@@ -3084,7 +3084,9 @@ pub const cpu = struct {
3084 pub const @"i86": CpuModel = .{3084 pub const @"i86": CpuModel = .{
3085 .name = "i86",3085 .name = "i86",
3086 .llvm_name = null,3086 .llvm_name = null,
3087 .features = featureSet(&[_]Feature{}),3087 .features = featureSet(&[_]Feature{
3088 .@"16bit_mode",
3089 }),
3088 };3090 };
3089 pub const @"i386": CpuModel = .{3091 pub const @"i386": CpuModel = .{
3090 .name = "i386",3092 .name = "i386",
tools/update_cpu_features.zig+7
...@@ -1541,6 +1541,13 @@ const targets = [_]ArchTarget{...@@ -1541,6 +1541,13 @@ const targets = [_]ArchTarget{
1541 .deps = &.{},1541 .deps = &.{},
1542 },1542 },
1543 },1543 },
1544 .extra_cpus = &.{
1545 .{
1546 .llvm_name = null,
1547 .zig_name = "i86",
1548 .features = &.{"16bit_mode"},
1549 },
1550 },
1544 .omit_cpus = &.{1551 .omit_cpus = &.{
1545 // LLVM defines a bunch of dumb aliases with foreach loops in X86.td.1552 // LLVM defines a bunch of dumb aliases with foreach loops in X86.td.
1546 "pentium_mmx",1553 "pentium_mmx",