git: ed3fb74e44b9 - main - share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Aug 2023 22:00:38 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/src/commit/?id=ed3fb74e44b9ef37837cebc5acfd7e68867206ca commit ed3fb74e44b9ef37837cebc5acfd7e68867206ca Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2023-08-20 21:54:19 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2023-08-20 21:54:29 +0000 share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86 Main difference between older Zen variants is that this supports AVX-512 Reviewed by: imp (previous version), emaste Approved by: emaste Differential Revision: https://reviews.freebsd.org/D41331 --- share/mk/bsd.cpu.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 80fb2e1f3398..3fee105e901d 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -148,7 +148,9 @@ _CPUCFLAGS = -mcpu=${CPUTYPE} ########## i386 . if ${MACHINE_CPUARCH} == "i386" -. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ +. if ${CPUTYPE} == "znver4" +MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586 +. elif ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ ${CPUTYPE} == "znver1" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586 . elif ${CPUTYPE} == "bdver4" @@ -229,7 +231,9 @@ MACHINE_CPU = mmx MACHINE_CPU += i486 ########## amd64 . elif ${MACHINE_CPUARCH} == "amd64" -. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ +. if ${CPUTYPE} == "znver4" +MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse4a sse3 +. elif ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ ${CPUTYPE} == "znver1" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 . elif ${CPUTYPE} == "bdver4"