diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-08-18 17:39:32 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-08-18 18:22:17 -0700 |
commit | 7e00df5818964298c9821365a6cb7a8304227c5c (patch) | |
tree | 5fdfc9a40deb0a4157bddffed28322a2ff9e5875 /arch/x86/kernel/cpu/feature_names.c | |
parent | e2fe16d91228a005811335fbc4fbad5d4f5b75af (diff) | |
download | blackbird-op-linux-7e00df5818964298c9821365a6cb7a8304227c5c.tar.gz blackbird-op-linux-7e00df5818964298c9821365a6cb7a8304227c5c.zip |
x86: add NOPL as a synthetic CPU feature bit
The long noops ("NOPL") are supposed to be detected by family >= 6.
Unfortunately, several non-Intel x86 implementations, both hardware
and software, don't obey this dictum. Instead, probe for NOPL
directly by executing a NOPL instruction and see if we get #UD.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/feature_names.c')
-rw-r--r-- | arch/x86/kernel/cpu/feature_names.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/feature_names.c b/arch/x86/kernel/cpu/feature_names.c index e43ad4ad4cba..c9017799497c 100644 --- a/arch/x86/kernel/cpu/feature_names.c +++ b/arch/x86/kernel/cpu/feature_names.c @@ -39,7 +39,8 @@ const char * const x86_cap_flags[NCAPINTS*32] = { NULL, NULL, NULL, NULL, "constant_tsc", "up", NULL, "arch_perfmon", "pebs", "bts", NULL, NULL, - "rep_good", NULL, NULL, NULL, NULL, NULL, NULL, NULL, + "rep_good", NULL, NULL, NULL, + "nopl", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, /* Intel-defined (#2) */ |