The branch stable/13 has been updated by dim:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a45dd984457f9f1273b1b9cd2867be39cdf774b7

commit a45dd984457f9f1273b1b9cd2867be39cdf774b7
Author:     Daniel Engberg <dii...@freebsd.org>
AuthorDate: 2023-08-20 21:54:19 +0000
Commit:     Dimitry Andric <d...@freebsd.org>
CommitDate: 2024-04-21 19:02:09 +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
    
    (cherry picked from commit ed3fb74e44b9ef37837cebc5acfd7e68867206ca)
---
 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 67d817e11101..c3c19e2befa4 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -159,7 +159,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"
@@ -240,7 +242,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"

Reply via email to