x86[_64]cpuid.pl: add function accessing rdrand instruction.

This commit is contained in:
Andy Polyakov
2011-06-04 12:20:45 +00:00
parent 8d515259e2
commit 301799b803
5 changed files with 58 additions and 2 deletions

View File

@@ -123,6 +123,14 @@ sub ::pclmulqdq
{ &::generic("pclmulqdq",@_); }
}
sub ::rdrand
{ my ($dst)=@_;
if ($dst =~ /(e[a-dsd][ixp])/)
{ &::data_byte(0x0f,0xc7,0xf0|$regrm{$dst}); }
else
{ &::generic("rdrand",@_); }
}
# label management
$lbdecor="L"; # local label decoration, set by package
$label="000";