Add rdpid instruction

Add the RDPID instruction, documented in the Intel SDM October 2016.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2016-11-15 11:55:14 -08:00
parent 48fe2eea27
commit c7ea29b247
2 changed files with 26 additions and 0 deletions

View File

@ -5114,6 +5114,11 @@ VXORPS zmmreg|mask|z,zmmreg*,zmmrm512|b32 [rvm:fv: evex.nds.512.0f.w0
RDPKRU void [ 0f 01 ee] X64,FUTURE
WRPKRU void [ 0f 01 ef] X64,FUTURE
; Read Processor ID
RDPID reg32 [m: f3 0f c7 /7] NOLONG,FUTURE
RDPID reg64 [m: o64nw f3 0f c7 /7] X64,FUTURE
RDPID reg32 [m: f3 0f c7 /7] X64,UNDOC,FUTURE
; New memory instructions
CLFLUSHOPT mem [m: 66 0f ae /7] FUTURE
CLWB mem [m: 66 0f ae /6] FUTURE

21
test/rdpid.asm Normal file
View File

@ -0,0 +1,21 @@
%ifdef ERROR
%define ERR(x) x
%else
%define ERR(x)
%endif
bits 16
rdpid eax
ERR(rdpid ax)
bits 32
rdpid ebx
ERR(rdpid bx)
bits 64
rdpid rcx
rdpid ecx
ERR(rdpid cx)