AMD (high performance)
Zen 2
AMD Zen 2 (2019) supports x86-64-v3.
- x86-64 level
- x86-64-v3
- Vendor
- AMD
- First products
- 2019
- Products
- Ryzen 3000 desktop; Ryzen 4000 APUs; EPYC 7002
- Segments
- GCC target
-march=znver2- Optimization
- Optimizing code for Zen 2
Product lines
| Product line | Segment | Socket | Source |
|---|---|---|---|
| Ryzen 3000 | desktop | AM4 | ir.amd.com |
| Ryzen 4000 | desktop | AM4 | ir.amd.com |
| Ryzen 4000 | mobile | FP6 (BGA) | ir.amd.com |
| Ryzen 5000 (5300U, 5500U, 5700U) | mobile | FP6 (BGA) | ir.amd.com |
| Ryzen 7020 | mobile | FT6 (BGA) | amd.com |
| Athlon 10 | mobile | FT6 (BGA) | amd.com |
| Ryzen Z2 A | mobile | not stated | amd.com |
| Ryzen Threadripper 3000 | workstation | sTRX4 | ir.amd.com |
| Ryzen Threadripper PRO 3000 WX | workstation | sWRX8 | amd.com |
| EPYC 7002 | server | SP3 | ir.amd.com |
| Ryzen Embedded V2000 | embedded | FP6 (BGA) | amd.com |
| EPYC Embedded 7002 | embedded | SP3 | amd.com |
Why not x86-64-v4?
Zen 2 lacks AVX512BW, AVX512CD, AVX512DQ, AVX512F and AVX512VL, all of which x86-64-v4 requires.
Feature checklist
| Feature | Zen 2 | Enumerated by | Linux flag |
|---|---|---|---|
| x86-64-v1 | |||
| CMOV | Yes | CPUID.01H:EDX[15] | cmov |
| CX8 | Yes | CPUID.01H:EDX[8] | cx8 |
| FPU | Yes | CPUID.01H:EDX[0] | fpu |
| FXSR | Yes | CPUID.01H:EDX[24] | fxsr |
| MMX | Yes | CPUID.01H:EDX[23] | mmx |
| OSFXSR via FXSR | Yes | CPUID.01H:EDX[24] | fxsr |
| SCE | Yes | CPUID.80000001H:EDX[11] | syscall |
| SSE | Yes | CPUID.01H:EDX[25] | sse |
| SSE2 | Yes | CPUID.01H:EDX[26] | sse2 |
| x86-64-v2 | |||
| CMPXCHG16B | Yes | CPUID.01H:ECX[13] | cx16 |
| LAHF-SAHF | Yes | CPUID.80000001H:ECX[0] | lahf_lm |
| POPCNT | Yes | CPUID.01H:ECX[23] | popcnt |
| SSE3 | Yes | CPUID.01H:ECX[0] | pni |
| SSE4.1 | Yes | CPUID.01H:ECX[19] | sse4_1 |
| SSE4.2 | Yes | CPUID.01H:ECX[20] | sse4_2 |
| SSSE3 | Yes | CPUID.01H:ECX[9] | ssse3 |
| x86-64-v3 | |||
| AVX | Yes | CPUID.01H:ECX[28] | avx |
| AVX2 | Yes | CPUID.(EAX=07H,ECX=0):EBX[5] | avx2 |
| BMI1 | Yes | CPUID.(EAX=07H,ECX=0):EBX[3] | bmi1 |
| BMI2 | Yes | CPUID.(EAX=07H,ECX=0):EBX[8] | bmi2 |
| F16C | Yes | CPUID.01H:ECX[29] | f16c |
| FMA | Yes | CPUID.01H:ECX[12] | fma |
| LZCNT | Yes | CPUID.80000001H:ECX[5] | abm |
| MOVBE | Yes | CPUID.01H:ECX[22] | movbe |
| OSXSAVE via XSAVE | Yes | CPUID.01H:ECX[26] | xsave |
| x86-64-v4 | |||
| AVX512F | No | CPUID.(EAX=07H,ECX=0):EBX[16] | avx512f |
| AVX512BW | No | CPUID.(EAX=07H,ECX=0):EBX[30] | avx512bw |
| AVX512CD | No | CPUID.(EAX=07H,ECX=0):EBX[28] | avx512cd |
| AVX512DQ | No | CPUID.(EAX=07H,ECX=0):EBX[17] | avx512dq |
| AVX512VL | No | CPUID.(EAX=07H,ECX=0):EBX[31] | avx512vl |
Other extensions
Notable extensions outside the x86-64 levels. Vendors sometimes disable these on individual models. Linked names lead to the extension's instructions.
Known vulnerabilities
The CVEs that the sources of the vulnerability list name as affecting Zen 2, in all of its models or in some of them.
- CVE-2025-54518 CPU Op Cache Corruption
- CVE-2025-54502 AMD AGESA, SMM and BIOS firmware: LocateProtocol in the APCB SMM driver
- CVE-2025-40300 VMSCAPE
- CVE-2024-56161 Microcode Signature Verification: Microcode Signature Verification: SEV-SNP Some models
- CVE-2024-36347 Microcode Signature Verification Some models
- CVE-2024-21925 AMD AGESA, SMM and BIOS firmware: AmdPspP2CmboxV2 input validation
- CVE-2024-21924 AMD AGESA, SMM and BIOS firmware: SMM callout in AmdPlatformRasSspSmm
- CVE-2024-0179 AMD AGESA, SMM and BIOS firmware: SMM callout in AmdCpmDisplayFeatureSMM
- CVE-2023-31364 AMD processor errata: Guest-initiated machine check errors Some models
- CVE-2023-31315 AMD AGESA, SMM and BIOS firmware: SMM lock bypass
- CVE-2023-20599 AMD Secure Processor and SMU firmware: Crypto Co-Processor registers from x86
- CVE-2023-20593 Cross-Process Information Leak
- CVE-2023-20592 AMD SEV, SEV-ES and SEV-SNP: INVD and guest memory integrity
- CVE-2023-20589 AMD Secure Processor and SMU firmware: Voltage fault injection on fTPM secure boot
- CVE-2023-20575 AMD SEV, SEV-ES and SEV-SNP: Power side channel on SEV guests
- CVE-2023-20569 Speculative Return Stack Overflow
- CVE-2023-20555 AMD AGESA, SMM and BIOS firmware: CpmDisplayFeatureSmm bit overwrite
- CVE-2022-29900 Retbleed: Retbleed (AMD)
- CVE-2022-27672 Cross-Thread Return Address Predictions
- CVE-2022-23829 AMD AGESA, SMM and BIOS firmware: SPI lock bypass
- CVE-2022-23824 Incomplete Branch Prediction Barrier: IBPB and Return Stack Buffer Interactions Some models
- CVE-2022-23823 Frequency Throttling Side Channel: Frequency Scaling Timing Power Side-Channels Some models
- CVE-2021-46778 Execution Unit Scheduler Contention Some models
- CVE-2021-46744 AMD SEV, SEV-ES and SEV-SNP: Ciphertext side channels on SEV
- CVE-2021-26341 Straight-line Speculation Some models
- CVE-2021-26340 AMD SEV, SEV-ES and SEV-SNP: TLB poisoning of SEV guests
- CVE-2021-26311 AMD SEV, SEV-ES and SEV-SNP: Rearranged guest memory that attestation misses
- CVE-2020-12967 AMD SEV, SEV-ES and SEV-SNP: Unprotected nested page tables of SEV guests
- CVE-2020-12966 AMD SEV, SEV-ES and SEV-SNP: Ciphertext side channel on SEV-ES register state
- CVE-2017-5753 Spectre variant 1: Bounds Check Bypass
- CVE-2017-5715 Spectre variant 2: Branch Target Injection
Other AMD (high performance) microarchitectures
Sources
- GCC -march=znver2 feature set (PTA_ZNVER2)
- AMD PPR for Family 17h Model 31h, Revision B0 Processors (55803, rev. 0.91, September 2020), Wayback Machine copy: RDPRU and MCOMMIT, which GCC’s -march sets leave out: the EPYC 7002 server processors set
CPUID_Fn80000008_EBX[RDPRU](bit 4) and[MCOMMIT](bit 8).