mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 12:51:02 +00:00
i386: Add PKU on Skylake-Server CPU model
As the release document ref below link (page 13): https://software.intel.com/sites/default/files/managed/c5/15/\ architecture-instruction-set-extensions-programming-reference.pdf PKU is supported in Skylake Server (Only Server) and later, and on Intel(R) Xeon(R) Processor Scalable Family. So PKU is supposed to be in Skylake-Server CPU model. And PKU's CPUID has been exposed to QEMU. But PKU can't be find in Skylake-Server CPU model in the code. So this patch will fix this issue in Skylake-Server CPU model. Backports commit 09b9ee643f90ef95e30e594df2a3c83ccaf75b1f from qemu
This commit is contained in:
parent
b004139ea1
commit
0aaa7f7ce9
|
@ -2910,7 +2910,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
|
|||
CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
|
||||
CPUID_7_0_EBX_AVX512VL,
|
||||
// FEAT_7_0_ECX
|
||||
0,
|
||||
CPUID_7_0_ECX_PKU,
|
||||
// FEAT_7_0_EDX
|
||||
0,
|
||||
// FEAT_8000_0001_EDX
|
||||
|
@ -2979,7 +2979,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
|
|||
CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
|
||||
CPUID_7_0_EBX_AVX512VL,
|
||||
// FEAT_7_0_ECX
|
||||
0,
|
||||
CPUID_7_0_ECX_PKU,
|
||||
// FEAT_7_0_EDX
|
||||
CPUID_7_0_EDX_SPEC_CTRL,
|
||||
// FEAT_8000_0001_EDX
|
||||
|
|
Loading…
Reference in a new issue