x86[_64]cpuid.pl: add low-level RDSEED.

This commit is contained in:
Andy Polyakov
2014-02-14 17:24:12 +01:00
parent 5599c7331b
commit f4d456408d
4 changed files with 48 additions and 0 deletions

View File

@@ -131,6 +131,14 @@ sub ::rdrand
{ &::generic("rdrand",@_); }
}
sub ::rdseed
{ my ($dst)=@_;
if ($dst =~ /(e[a-dsd][ixp])/)
{ &::data_byte(0x0f,0xc7,0xf8|$regrm{$dst}); }
else
{ &::generic("rdrand",@_); }
}
sub rxb {
local *opcode=shift;
my ($dst,$src1,$src2,$rxb)=@_;