tools: cpuid inputs must be 32 character long if hexadecimal value is

not used.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
This commit is contained in:
Keir Fraser committed 2008-07-21 14:03:26 +01:00
1 parent 19aa4a65a3
commit 518aee2780
1 file changed
+4
+4
View File
@@ -956,6 +956,10 @@ def preprocess_cpuid(vals, attr_name):
if reg_match == None:
err("cpuid's syntax is (eax|ebx|ecx|edx)=value")
res = reg_match.groupdict()
if (res['val'][:2] != '0x' and len(res['val']) != 32):
err("cpuid: We should specify all the bits " \
"of the register %s for input %s\n"
% (res['reg'], input) )
cpuid[input][res['reg']] = res['val'] # new register
setattr(vals, attr_name, cpuid)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.