authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-03-27 12:33:08+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-03-27 12:23:40-07:00
log75080e351af8be45722bca50c1d5fcd503304d77
tree833b11f1d5e041d849599f13e5e085efea3d1222
parenta4316d5505d3af1e868a3506787f31a9ae90085a

std: Detect AMD Zen3 CPU family

Easy peasy lemon squeezy.

1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/zig/system/x86.zig+4
...@@ -311,6 +311,10 @@ fn detectAMDProcessor(cpu: *Target.Cpu, family: u32, model: u32) void {...@@ -311,6 +311,10 @@ fn detectAMDProcessor(cpu: *Target.Cpu, family: u32, model: u32) void {
311 }311 }
312 return;312 return;
313 },313 },
314 25 => {
315 cpu.model = &Target.x86.cpu.znver3;
316 return;
317 },
314 else => {318 else => {
315 return;319 return;
316 },320 },