mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
fix: add i86 cpu in update_cpu_features
This commit is contained in:
parent
b409cdf63f
commit
fca748ffba
2 changed files with 10 additions and 1 deletions
|
|
@ -3084,7 +3084,9 @@ pub const cpu = struct {
|
||||||
pub const @"i86": CpuModel = .{
|
pub const @"i86": CpuModel = .{
|
||||||
.name = "i86",
|
.name = "i86",
|
||||||
.llvm_name = null,
|
.llvm_name = null,
|
||||||
.features = featureSet(&[_]Feature{}),
|
.features = featureSet(&[_]Feature{
|
||||||
|
.@"16bit_mode",
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
pub const @"i386": CpuModel = .{
|
pub const @"i386": CpuModel = .{
|
||||||
.name = "i386",
|
.name = "i386",
|
||||||
|
|
|
||||||
|
|
@ -1541,6 +1541,13 @@ const targets = [_]ArchTarget{
|
||||||
.deps = &.{},
|
.deps = &.{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
.extra_cpus = &.{
|
||||||
|
.{
|
||||||
|
.llvm_name = null,
|
||||||
|
.zig_name = "i86",
|
||||||
|
.features = &.{"16bit_mode"},
|
||||||
|
},
|
||||||
|
},
|
||||||
.omit_cpus = &.{
|
.omit_cpus = &.{
|
||||||
// LLVM defines a bunch of dumb aliases with foreach loops in X86.td.
|
// LLVM defines a bunch of dumb aliases with foreach loops in X86.td.
|
||||||
"pentium_mmx",
|
"pentium_mmx",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue