aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/x86/processor.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-13 23:00:22 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-19 07:20:33 -0700
commit763ebf42aba04ad91ea8013563f83671864ab3b9 (patch)
tree8d59d4eec2d68420f334d9935aac8f8043982360 /modules/devices/x86/processor.c
parent0bb72abc462d42af051bebf5f4093bb1735ad448 (diff)
x86,arm,riscv: Use gettext contexts and comments for cpu flags
* flag defintion strings are grouped into contexts: x86-flag, arm-flag, riscv-ext * a comment is included for translators so that they know what flag the string defines without looking at the source code Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/x86/processor.c')
-rw-r--r--modules/devices/x86/processor.c469
1 files changed, 234 insertions, 235 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c
index f6b9963c..34d16f6c 100644
--- a/modules/devices/x86/processor.c
+++ b/modules/devices/x86/processor.c
@@ -344,269 +344,268 @@ static struct {
} flag_meaning[] = {
/* Intel-defined CPU features, CPUID level 0x00000001 (edx)
* See also Wikipedia and table 2-27 in Intel Advanced Vector Extensions Programming Reference */
- { "fpu", N_("Onboard FPU (floating point support)") },
- { "vme", N_("Virtual 8086 mode enhancements") },
- { "de", N_("Debugging Extensions (CR4.DE)") },
- { "pse", N_("Page Size Extensions (4MB memory pages)") },
- { "tsc", N_("Time Stamp Counter (RDTSC)") },
- { "msr", N_("Model-Specific Registers (RDMSR, WRMSR)") },
- { "pae", N_("Physical Address Extensions (support for more than 4GB of RAM)") },
- { "mce", N_("Machine Check Exception") },
- { "cx8", N_("CMPXCHG8 instruction (64-bit compare-and-swap)") },
- { "apic", N_("Onboard APIC") },
- { "sep", N_("SYSENTER/SYSEXIT") },
- { "mtrr", N_("Memory Type Range Registers") },
- { "pge", N_("Page Global Enable (global bit in PDEs and PTEs)") },
- { "mca", N_("Machine Check Architecture") },
- { "cmov", N_("CMOV instructions (conditional move) (also FCMOV)") },
- { "pat", N_("Page Attribute Table") },
- { "pse36", N_("36-bit PSEs (huge pages)") },
- { "pn", N_("Processor serial number") },
- { "clflush", N_("Cache Line Flush instruction") },
- { "dts", N_("Debug Store (buffer for debugging and profiling instructions), or alternately: digital thermal sensor") },
- { "acpi", N_("ACPI via MSR (temperature monitoring and clock speed modulation)") },
- { "mmx", N_("Multimedia Extensions") },
- { "fxsr", N_("FXSAVE/FXRSTOR, CR4.OSFXSR") },
- { "sse", N_("Intel SSE vector instructions") },
- { "sse2", N_("SSE2") },
- { "ss", N_("CPU self snoop") },
- { "ht", N_("Hyper-Threading") },
- { "tm", N_("Automatic clock control (Thermal Monitor)") },
- { "ia64", N_("Intel Itanium Architecture 64-bit (not to be confused with Intel's 64-bit x86 architecture with flag x86-64 or \"AMD64\" bit indicated by flag lm)") },
- { "pbe", N_("Pending Break Enable (PBE# pin) wakeup support") },
+ { "fpu", NC_("x86-flag", /*/flag:fpu*/ "Onboard FPU (floating point support)") },
+ { "vme", NC_("x86-flag", /*/flag:vme*/ "Virtual 8086 mode enhancements") },
+ { "de", NC_("x86-flag", /*/flag:de*/ "Debugging Extensions (CR4.DE)") },
+ { "pse", NC_("x86-flag", /*/flag:pse*/ "Page Size Extensions (4MB memory pages)") },
+ { "tsc", NC_("x86-flag", /*/flag:tsc*/ "Time Stamp Counter (RDTSC)") },
+ { "msr", NC_("x86-flag", /*/flag:msr*/ "Model-Specific Registers (RDMSR, WRMSR)") },
+ { "pae", NC_("x86-flag", /*/flag:pae*/ "Physical Address Extensions (support for more than 4GB of RAM)") },
+ { "mce", NC_("x86-flag", /*/flag:mce*/ "Machine Check Exception") },
+ { "cx8", NC_("x86-flag", /*/flag:cx8*/ "CMPXCHG8 instruction (64-bit compare-and-swap)") },
+ { "apic", NC_("x86-flag", /*/flag:apic*/ "Onboard APIC") },
+ { "sep", NC_("x86-flag", /*/flag:sep*/ "SYSENTER/SYSEXIT") },
+ { "mtrr", NC_("x86-flag", /*/flag:mtrr*/ "Memory Type Range Registers") },
+ { "pge", NC_("x86-flag", /*/flag:pge*/ "Page Global Enable (global bit in PDEs and PTEs)") },
+ { "mca", NC_("x86-flag", /*/flag:mca*/ "Machine Check Architecture") },
+ { "cmov", NC_("x86-flag", /*/flag:cmov*/ "CMOV instructions (conditional move) (also FCMOV)") },
+ { "pat", NC_("x86-flag", /*/flag:pat*/ "Page Attribute Table") },
+ { "pse36", NC_("x86-flag", /*/flag:pse36*/ "36-bit PSEs (huge pages)") },
+ { "pn", NC_("x86-flag", /*/flag:pn*/ "Processor serial number") },
+ { "clflush", NC_("x86-flag", /*/flag:clflush*/ "Cache Line Flush instruction") },
+ { "dts", NC_("x86-flag", /*/flag:dts*/ "Debug Store (buffer for debugging and profiling instructions), or alternately: digital thermal sensor") },
+ { "acpi", NC_("x86-flag", /*/flag:acpi*/ "ACPI via MSR (temperature monitoring and clock speed modulation)") },
+ { "mmx", NC_("x86-flag", /*/flag:mmx*/ "Multimedia Extensions") },
+ { "fxsr", NC_("x86-flag", /*/flag:fxsr*/ "FXSAVE/FXRSTOR, CR4.OSFXSR") },
+ { "sse", NC_("x86-flag", /*/flag:sse*/ "Intel SSE vector instructions") },
+ { "sse2", NC_("x86-flag", /*/flag:sse2*/ "SSE2") },
+ { "ss", NC_("x86-flag", /*/flag:ss*/ "CPU self snoop") },
+ { "ht", NC_("x86-flag", /*/flag:ht*/ "Hyper-Threading") },
+ { "tm", NC_("x86-flag", /*/flag:tm*/ "Automatic clock control (Thermal Monitor)") },
+ { "ia64", NC_("x86-flag", /*/flag:ia64*/ "Intel Itanium Architecture 64-bit (not to be confused with Intel's 64-bit x86 architecture with flag x86-64 or \"AMD64\" bit indicated by flag lm)") },
+ { "pbe", NC_("x86-flag", /*/flag:pbe*/ "Pending Break Enable (PBE# pin) wakeup support") },
/* AMD-defined CPU features, CPUID level 0x80000001
* See also Wikipedia and table 2-23 in Intel Advanced Vector Extensions Programming Reference */
- { "syscall", N_("SYSCALL (Fast System Call) and SYSRET (Return From Fast System Call)") },
- { "mp", N_("Multiprocessing Capable.") },
- { "nx", N_("Execute Disable") },
- { "mmxext", N_("AMD MMX extensions") },
- { "fxsr_opt", N_("FXSAVE/FXRSTOR optimizations") },
- { "pdpe1gb", N_("One GB pages (allows hugepagesz=1G)") },
- { "rdtscp", N_("Read Time-Stamp Counter and Processor ID") },
- { "lm", N_("Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable)") },
- { "3dnow", N_("3DNow! (AMD vector instructions, competing with Intel's SSE1)") },
- { "3dnowext", N_("AMD 3DNow! extensions") },
+ { "syscall", NC_("x86-flag", /*/flag:syscall*/ "SYSCALL (Fast System Call) and SYSRET (Return From Fast System Call)") },
+ { "mp", NC_("x86-flag", /*/flag:mp*/ "Multiprocessing Capable.") },
+ { "nx", NC_("x86-flag", /*/flag:nx*/ "Execute Disable") },
+ { "mmxext", NC_("x86-flag", /*/flag:mmxext*/ "AMD MMX extensions") },
+ { "fxsr_opt", NC_("x86-flag", /*/flag:fxsr_opt*/ "FXSAVE/FXRSTOR optimizations") },
+ { "pdpe1gb", NC_("x86-flag", /*/flag:pdpe1gb*/ "One GB pages (allows hugepagesz=1G)") },
+ { "rdtscp", NC_("x86-flag", /*/flag:rdtscp*/ "Read Time-Stamp Counter and Processor ID") },
+ { "lm", NC_("x86-flag", /*/flag:lm*/ "Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable)") },
+ { "3dnow", NC_("x86-flag", /*/flag:3dnow*/ "3DNow! (AMD vector instructions, competing with Intel's SSE1)") },
+ { "3dnowext", NC_("x86-flag", /*/flag:3dnowext*/ "AMD 3DNow! extensions") },
/* Transmeta-defined CPU features, CPUID level 0x80860001 */
- { "recovery", N_("CPU in recovery mode") },
- { "longrun", N_("Longrun power control") },
- { "lrti", N_("LongRun table interface") },
+ { "recovery", NC_("x86-flag", /*/flag:recovery*/ "CPU in recovery mode") },
+ { "longrun", NC_("x86-flag", /*/flag:longrun*/ "Longrun power control") },
+ { "lrti", NC_("x86-flag", /*/flag:lrti*/ "LongRun table interface") },
/* Other features, Linux-defined mapping */
- { "cxmmx", N_("Cyrix MMX extensions") },
- { "k6_mtrr", N_("AMD K6 nonstandard MTRRs") },
- { "cyrix_arr", N_("Cyrix ARRs (= MTRRs)") },
- { "centaur_mcr", N_("Centaur MCRs (= MTRRs)") },
- { "constant_tsc", N_("TSC ticks at a constant rate") },
- { "up", N_("SMP kernel running on UP") },
- { "art", N_("Always-Running Timer") },
- { "arch_perfmon", N_("Intel Architectural PerfMon") },
- { "pebs", N_("Precise-Event Based Sampling") },
- { "bts", N_("Branch Trace Store") },
- { "rep_good", N_("rep microcode works well") },
- { "acc_power", N_("AMD accumulated power mechanism") },
- { "nopl", N_("The NOPL (0F 1F) instructions") },
- { "xtopology", N_("cpu topology enum extensions") },
- { "tsc_reliable", N_("TSC is known to be reliable") },
- { "nonstop_tsc", N_("TSC does not stop in C states") },
- { "extd_apicid", N_("has extended APICID (8 bits)") },
- { "amd_dcm", N_("multi-node processor") },
- { "aperfmperf", N_("APERFMPERF") },
- { "eagerfpu", N_("Non lazy FPU restore") },
- { "nonstop_tsc_s3", N_("TSC doesn't stop in S3 state") },
- { "mce_recovery", N_("CPU has recoverable machine checks") },
+ { "cxmmx", NC_("x86-flag", /*/flag:cxmmx*/ "Cyrix MMX extensions") },
+ { "k6_mtrr", NC_("x86-flag", /*/flag:k6_mtrr*/ "AMD K6 nonstandard MTRRs") },
+ { "cyrix_arr", NC_("x86-flag", /*/flag:cyrix_arr*/ "Cyrix ARRs (= MTRRs)") },
+ { "centaur_mcr", NC_("x86-flag", /*/flag:centaur_mcr*/ "Centaur MCRs (= MTRRs)") },
+ { "constant_tsc", NC_("x86-flag", /*/flag:constant_tsc*/ "TSC ticks at a constant rate") },
+ { "up", NC_("x86-flag", /*/flag:up*/ "SMP kernel running on UP") },
+ { "art", NC_("x86-flag", /*/flag:art*/ "Always-Running Timer") },
+ { "arch_perfmon", NC_("x86-flag", /*/flag:arch_perfmon*/ "Intel Architectural PerfMon") },
+ { "pebs", NC_("x86-flag", /*/flag:pebs*/ "Precise-Event Based Sampling") },
+ { "bts", NC_("x86-flag", /*/flag:bts*/ "Branch Trace Store") },
+ { "rep_good", NC_("x86-flag", /*/flag:rep_good*/ "rep microcode works well") },
+ { "acc_power", NC_("x86-flag", /*/flag:acc_power*/ "AMD accumulated power mechanism") },
+ { "nopl", NC_("x86-flag", /*/flag:nopl*/ "The NOPL (0F 1F) instructions") },
+ { "xtopology", NC_("x86-flag", /*/flag:xtopology*/ "cpu topology enum extensions") },
+ { "tsc_reliable", NC_("x86-flag", /*/flag:tsc_reliable*/ "TSC is known to be reliable") },
+ { "nonstop_tsc", NC_("x86-flag", /*/flag:nonstop_tsc*/ "TSC does not stop in C states") },
+ { "extd_apicid", NC_("x86-flag", /*/flag:extd_apicid*/ "has extended APICID (8 bits)") },
+ { "amd_dcm", NC_("x86-flag", /*/flag:amd_dcm*/ "multi-node processor") },
+ { "aperfmperf", NC_("x86-flag", /*/flag:aperfmperf*/ "APERFMPERF") },
+ { "eagerfpu", NC_("x86-flag", /*/flag:eagerfpu*/ "Non lazy FPU restore") },
+ { "nonstop_tsc_s3", NC_("x86-flag", /*/flag:nonstop_tsc_s3*/ "TSC doesn't stop in S3 state") },
+ { "mce_recovery", NC_("x86-flag", /*/flag:mce_recovery*/ "CPU has recoverable machine checks") },
/* Intel-defined CPU features, CPUID level 0x00000001 (ecx)
* See also Wikipedia and table 2-26 in Intel Advanced Vector Extensions Programming Reference */
- { "pni", N_("SSE-3 (“Prescott New Instructions”)") },
- { "pclmulqdq", N_("Perform a Carry-Less Multiplication of Quadword instruction — accelerator for GCM)") },
- { "dtes64", N_("64-bit Debug Store") },
- { "monitor", N_("Monitor/Mwait support (Intel SSE3 supplements)") },
- { "ds_cpl", N_("CPL Qual. Debug Store") },
- { "vmx", N_("Hardware virtualization, Intel VMX") },
- { "smx", N_("Safer mode TXT (TPM support)") },
- { "est", N_("Enhanced SpeedStep") },
- { "tm2", N_("Thermal Monitor 2") },
- { "ssse3", N_("Supplemental SSE-3") },
- { "cid", N_("Context ID") },
- { "sdbg", N_("silicon debug") },
- { "fma", N_("Fused multiply-add") },
- { "cx16", N_("CMPXCHG16B") },
- { "xtpr", N_("Send Task Priority Messages") },
- { "pdcm", N_("Performance Capabilities") },
- { "pcid", N_("Process Context Identifiers") },
- { "dca", N_("Direct Cache Access") },
- { "sse4_1", N_("SSE-4.1") },
- { "sse4_2", N_("SSE-4.2") },
- { "x2apic", N_("x2APIC") },
- { "movbe", N_("Move Data After Swapping Bytes instruction") },
- { "popcnt", N_("Return the Count of Number of Bits Set to 1 instruction (Hamming weight, i.e. bit count)") },
- { "tsc_deadline_timer", N_("Tsc deadline timer") },
- { "aes/aes-ni", N_("Advanced Encryption Standard (New Instructions)") },
- { "xsave", N_("Save Processor Extended States: also provides XGETBY,XRSTOR,XSETBY") },
- { "avx", N_("Advanced Vector Extensions") },
- { "f16c", N_("16-bit fp conversions (CVT16)") },
- { "rdrand", N_("Read Random Number from hardware random number generator instruction") },
- { "hypervisor", N_("Running on a hypervisor") },
+ { "pni", NC_("x86-flag", /*/flag:pni*/ "SSE-3 (\"Prescott New Instructions\")") },
+ { "pclmulqdq", NC_("x86-flag", /*/flag:pclmulqdq*/ "Perform a Carry-Less Multiplication of Quadword instruction - accelerator for GCM)") },
+ { "dtes64", NC_("x86-flag", /*/flag:dtes64*/ "64-bit Debug Store") },
+ { "monitor", NC_("x86-flag", /*/flag:monitor*/ "Monitor/Mwait support (Intel SSE3 supplements)") },
+ { "ds_cpl", NC_("x86-flag", /*/flag:ds_cpl*/ "CPL Qual. Debug Store") },
+ { "vmx", NC_("x86-flag", /*/flag:vmx*/ "Hardware virtualization, Intel VMX") },
+ { "smx", NC_("x86-flag", /*/flag:smx*/ "Safer mode TXT (TPM support)") },
+ { "est", NC_("x86-flag", /*/flag:est*/ "Enhanced SpeedStep") },
+ { "tm2", NC_("x86-flag", /*/flag:tm2*/ "Thermal Monitor 2") },
+ { "ssse3", NC_("x86-flag", /*/flag:ssse3*/ "Supplemental SSE-3") },
+ { "cid", NC_("x86-flag", /*/flag:cid*/ "Context ID") },
+ { "sdbg", NC_("x86-flag", /*/flag:sdbg*/ "silicon debug") },
+ { "fma", NC_("x86-flag", /*/flag:fma*/ "Fused multiply-add") },
+ { "cx16", NC_("x86-flag", /*/flag:cx16*/ "CMPXCHG16B") },
+ { "xtpr", NC_("x86-flag", /*/flag:xtpr*/ "Send Task Priority Messages") },
+ { "pdcm", NC_("x86-flag", /*/flag:pdcm*/ "Performance Capabilities") },
+ { "pcid", NC_("x86-flag", /*/flag:pcid*/ "Process Context Identifiers") },
+ { "dca", NC_("x86-flag", /*/flag:dca*/ "Direct Cache Access") },
+ { "sse4_1", NC_("x86-flag", /*/flag:sse4_1*/ "SSE-4.1") },
+ { "sse4_2", NC_("x86-flag", /*/flag:sse4_2*/ "SSE-4.2") },
+ { "x2apic", NC_("x86-flag", /*/flag:x2apic*/ "x2APIC") },
+ { "movbe", NC_("x86-flag", /*/flag:movbe*/ "Move Data After Swapping Bytes instruction") },
+ { "popcnt", NC_("x86-flag", /*/flag:popcnt*/ "Return the Count of Number of Bits Set to 1 instruction (Hamming weight, i.e. bit count)") },
+ { "tsc_deadline_timer", NC_("x86-flag", /*/flag:tsc_deadline_timer*/ "Tsc deadline timer") },
+ { "aes/aes-ni", NC_("x86-flag", /*/flag:aes/aes-ni*/ "Advanced Encryption Standard (New Instructions)") },
+ { "xsave", NC_("x86-flag", /*/flag:xsave*/ "Save Processor Extended States: also provides XGETBY,XRSTOR,XSETBY") },
+ { "avx", NC_("x86-flag", /*/flag:avx*/ "Advanced Vector Extensions") },
+ { "f16c", NC_("x86-flag", /*/flag:f16c*/ "16-bit fp conversions (CVT16)") },
+ { "rdrand", NC_("x86-flag", /*/flag:rdrand*/ "Read Random Number from hardware random number generator instruction") },
+ { "hypervisor", NC_("x86-flag", /*/flag:hypervisor*/ "Running on a hypervisor") },
/* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001 */
- { "rng", N_("Random Number Generator present (xstore)") },
- { "rng_en", N_("Random Number Generator enabled") },
- { "ace", N_("on-CPU crypto (xcrypt)") },
- { "ace_en", N_("on-CPU crypto enabled") },
- { "ace2", N_("Advanced Cryptography Engine v2") },
- { "ace2_en", N_("ACE v2 enabled") },
- { "phe", N_("PadLock Hash Engine") },
- { "phe_en", N_("PHE enabled") },
- { "pmm", N_("PadLock Montgomery Multiplier") },
- { "pmm_en", N_("PMM enabled") },
+ { "rng", NC_("x86-flag", /*/flag:rng*/ "Random Number Generator present (xstore)") },
+ { "rng_en", NC_("x86-flag", /*/flag:rng_en*/ "Random Number Generator enabled") },
+ { "ace", NC_("x86-flag", /*/flag:ace*/ "on-CPU crypto (xcrypt)") },
+ { "ace_en", NC_("x86-flag", /*/flag:ace_en*/ "on-CPU crypto enabled") },
+ { "ace2", NC_("x86-flag", /*/flag:ace2*/ "Advanced Cryptography Engine v2") },
+ { "ace2_en", NC_("x86-flag", /*/flag:ace2_en*/ "ACE v2 enabled") },
+ { "phe", NC_("x86-flag", /*/flag:phe*/ "PadLock Hash Engine") },
+ { "phe_en", NC_("x86-flag", /*/flag:phe_en*/ "PHE enabled") },
+ { "pmm", NC_("x86-flag", /*/flag:pmm*/ "PadLock Montgomery Multiplier") },
+ { "pmm_en", NC_("x86-flag", /*/flag:pmm_en*/ "PMM enabled") },
/* More extended AMD flags: CPUID level 0x80000001, ecx */
- { "lahf_lm", N_("Load AH from Flags (LAHF) and Store AH into Flags (SAHF) in long mode") },
- { "cmp_legacy", N_("If yes HyperThreading not valid") },
- { "svm", N_("\"Secure virtual machine\": AMD-V") },
- { "extapic", N_("Extended APIC space") },
- { "cr8_legacy", N_("CR8 in 32-bit mode") },
- { "abm", N_("Advanced Bit Manipulation") },
- { "sse4a", N_("SSE-4A") },
- { "misalignsse", N_("indicates if a general-protection exception (#GP) is generated when some legacy SSE instructions operate on unaligned data. Also depends on CR0 and Alignment Checking bit") },
- { "3dnowprefetch", N_("3DNow prefetch instructions") },
- { "osvw", N_("indicates OS Visible Workaround, which allows the OS to work around processor errata.") },
- { "ibs", N_("Instruction Based Sampling") },
- { "xop", N_("extended AVX instructions") },
- { "skinit", N_("SKINIT/STGI instructions") },
- { "wdt", N_("Watchdog timer") },
- { "lwp", N_("Light Weight Profiling") },
- { "fma4", N_("4 operands MAC instructions") },
- { "tce", N_("translation cache extension") },
- { "nodeid_msr", N_("NodeId MSR") },
- { "tbm", N_("Trailing Bit Manipulation") },
- { "topoext", N_("Topology Extensions CPUID leafs") },
- { "perfctr_core", N_("Core Performance Counter Extensions") },
- { "perfctr_nb", N_("NB Performance Counter Extensions") },
- { "bpext", N_("data breakpoint extension") },
- { "ptsc", N_("performance time-stamp counter") },
- { "perfctr_l2", N_("L2 Performance Counter Extensions") },
- { "mwaitx", N_("MWAIT extension (MONITORX/MWAITX)") },
+ { "lahf_lm", NC_("x86-flag", /*/flag:lahf_lm*/ "Load AH from Flags (LAHF) and Store AH into Flags (SAHF) in long mode") },
+ { "cmp_legacy", NC_("x86-flag", /*/flag:cmp_legacy*/ "If yes HyperThreading not valid") },
+ { "svm", NC_("x86-flag", /*/flag:svm*/ "\"Secure virtual machine\": AMD-V") },
+ { "extapic", NC_("x86-flag", /*/flag:extapic*/ "Extended APIC space") },
+ { "cr8_legacy", NC_("x86-flag", /*/flag:cr8_legacy*/ "CR8 in 32-bit mode") },
+ { "abm", NC_("x86-flag", /*/flag:abm*/ "Advanced Bit Manipulation") },
+ { "sse4a", NC_("x86-flag", /*/flag:sse4a*/ "SSE-4A") },
+ { "misalignsse", NC_("x86-flag", /*/flag:misalignsse*/ "indicates if a general-protection exception (#GP) is generated when some legacy SSE instructions operate on unaligned data. Also depends on CR0 and Alignment Checking bit") },
+ { "3dnowprefetch", NC_("x86-flag", /*/flag:3dnowprefetch*/ "3DNow prefetch instructions") },
+ { "osvw", NC_("x86-flag", /*/flag:osvw*/ "indicates OS Visible Workaround, which allows the OS to work around processor errata.") },
+ { "ibs", NC_("x86-flag", /*/flag:ibs*/ "Instruction Based Sampling") },
+ { "xop", NC_("x86-flag", /*/flag:xop*/ "extended AVX instructions") },
+ { "skinit", NC_("x86-flag", /*/flag:skinit*/ "SKINIT/STGI instructions") },
+ { "wdt", NC_("x86-flag", /*/flag:wdt*/ "Watchdog timer") },
+ { "lwp", NC_("x86-flag", /*/flag:lwp*/ "Light Weight Profiling") },
+ { "fma4", NC_("x86-flag", /*/flag:fma4*/ "4 operands MAC instructions") },
+ { "tce", NC_("x86-flag", /*/flag:tce*/ "translation cache extension") },
+ { "nodeid_msr", NC_("x86-flag", /*/flag:nodeid_msr*/ "NodeId MSR") },
+ { "tbm", NC_("x86-flag", /*/flag:tbm*/ "Trailing Bit Manipulation") },
+ { "topoext", NC_("x86-flag", /*/flag:topoext*/ "Topology Extensions CPUID leafs") },
+ { "perfctr_core", NC_("x86-flag", /*/flag:perfctr_core*/ "Core Performance Counter Extensions") },
+ { "perfctr_nb", NC_("x86-flag", /*/flag:perfctr_nb*/ "NB Performance Counter Extensions") },
+ { "bpext", NC_("x86-flag", /*/flag:bpext*/ "data breakpoint extension") },
+ { "ptsc", NC_("x86-flag", /*/flag:ptsc*/ "performance time-stamp counter") },
+ { "perfctr_l2", NC_("x86-flag", /*/flag:perfctr_l2*/ "L2 Performance Counter Extensions") },
+ { "mwaitx", NC_("x86-flag", /*/flag:mwaitx*/ "MWAIT extension (MONITORX/MWAITX)") },
/* Auxiliary flags: Linux defined - For features scattered in various CPUID levels */
- { "cpb", N_("AMD Core Performance Boost") },
- { "epb", N_("IA32_ENERGY_PERF_BIAS support") },
- { "hw_pstate", N_("AMD HW-PState") },
- { "proc_feedback", N_("AMD ProcFeedbackInterface") },
- { "intel_pt", N_("Intel Processor Tracing") },
+ { "cpb", NC_("x86-flag", /*/flag:cpb*/ "AMD Core Performance Boost") },
+ { "epb", NC_("x86-flag", /*/flag:epb*/ "IA32_ENERGY_PERF_BIAS support") },
+ { "hw_pstate", NC_("x86-flag", /*/flag:hw_pstate*/ "AMD HW-PState") },
+ { "proc_feedback", NC_("x86-flag", /*/flag:proc_feedback*/ "AMD ProcFeedbackInterface") },
+ { "intel_pt", NC_("x86-flag", /*/flag:intel_pt*/ "Intel Processor Tracing") },
/* Virtualization flags: Linux defined */
- { "tpr_shadow", N_("Intel TPR Shadow") },
- { "vnmi", N_("Intel Virtual NMI") },
- { "flexpriority", N_("Intel FlexPriority") },
- { "ept", N_("Intel Extended Page Table") },
- { "vpid", N_("Intel Virtual Processor ID") },
- { "vmmcall", N_("prefer VMMCALL to VMCALL") },
+ { "tpr_shadow", NC_("x86-flag", /*/flag:tpr_shadow*/ "Intel TPR Shadow") },
+ { "vnmi", NC_("x86-flag", /*/flag:vnmi*/ "Intel Virtual NMI") },
+ { "flexpriority", NC_("x86-flag", /*/flag:flexpriority*/ "Intel FlexPriority") },
+ { "ept", NC_("x86-flag", /*/flag:ept*/ "Intel Extended Page Table") },
+ { "vpid", NC_("x86-flag", /*/flag:vpid*/ "Intel Virtual Processor ID") },
+ { "vmmcall", NC_("x86-flag", /*/flag:vmmcall*/ "prefer VMMCALL to VMCALL") },
/* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx) */
- { "fsgsbase", N_("{RD/WR}{FS/GS}BASE instructions") },
- { "tsc_adjust", N_("TSC adjustment MSR") },
- { "bmi1", N_("1st group bit manipulation extensions") },
- { "hle", N_("Hardware Lock Elision") },
- { "avx2", N_("AVX2 instructions") },
- { "smep", N_("Supervisor Mode Execution Protection") },
- { "bmi2", N_("2nd group bit manipulation extensions") },
- { "erms", N_("Enhanced REP MOVSB/STOSB") },
- { "invpcid", N_("Invalidate Processor Context ID") },
- { "rtm", N_("Restricted Transactional Memory") },
- { "cqm", N_("Cache QoS Monitoring") },
- { "mpx", N_("Memory Protection Extension") },
- { "avx512f", N_("AVX-512 foundation") },
- { "avx512dq", N_("AVX-512 Double/Quad instructions") },
- { "rdseed", N_("The RDSEED instruction") },
- { "adx", N_("The ADCX and ADOX instructions") },
- { "smap", N_("Supervisor Mode Access Prevention") },
- { "clflushopt", N_("CLFLUSHOPT instruction") },
- { "clwb", N_("CLWB instruction") },
- { "avx512pf", N_("AVX-512 Prefetch") },
- { "avx512er", N_("AVX-512 Exponential and Reciprocal") },
- { "avx512cd", N_("AVX-512 Conflict Detection") },
- { "sha_ni", N_("SHA1/SHA256 Instruction Extensions") },
- { "avx512bw", N_("AVX-512 Byte/Word instructions") },
- { "avx512vl", N_("AVX-512 128/256 Vector Length extensions") },
+ { "fsgsbase", NC_("x86-flag", /*/flag:fsgsbase*/ "{RD/WR}{FS/GS}BASE instructions") },
+ { "tsc_adjust", NC_("x86-flag", /*/flag:tsc_adjust*/ "TSC adjustment MSR") },
+ { "bmi1", NC_("x86-flag", /*/flag:bmi1*/ "1st group bit manipulation extensions") },
+ { "hle", NC_("x86-flag", /*/flag:hle*/ "Hardware Lock Elision") },
+ { "avx2", NC_("x86-flag", /*/flag:avx2*/ "AVX2 instructions") },
+ { "smep", NC_("x86-flag", /*/flag:smep*/ "Supervisor Mode Execution Protection") },
+ { "bmi2", NC_("x86-flag", /*/flag:bmi2*/ "2nd group bit manipulation extensions") },
+ { "erms", NC_("x86-flag", /*/flag:erms*/ "Enhanced REP MOVSB/STOSB") },
+ { "invpcid", NC_("x86-flag", /*/flag:invpcid*/ "Invalidate Processor Context ID") },
+ { "rtm", NC_("x86-flag", /*/flag:rtm*/ "Restricted Transactional Memory") },
+ { "cqm", NC_("x86-flag", /*/flag:cqm*/ "Cache QoS Monitoring") },
+ { "mpx", NC_("x86-flag", /*/flag:mpx*/ "Memory Protection Extension") },
+ { "avx512f", NC_("x86-flag", /*/flag:avx512f*/ "AVX-512 foundation") },
+ { "avx512dq", NC_("x86-flag", /*/flag:avx512dq*/ "AVX-512 Double/Quad instructions") },
+ { "rdseed", NC_("x86-flag", /*/flag:rdseed*/ "The RDSEED instruction") },
+ { "adx", NC_("x86-flag", /*/flag:adx*/ "The ADCX and ADOX instructions") },
+ { "smap", NC_("x86-flag", /*/flag:smap*/ "Supervisor Mode Access Prevention") },
+ { "clflushopt", NC_("x86-flag", /*/flag:clflushopt*/ "CLFLUSHOPT instruction") },
+ { "clwb", NC_("x86-flag", /*/flag:clwb*/ "CLWB instruction") },
+ { "avx512pf", NC_("x86-flag", /*/flag:avx512pf*/ "AVX-512 Prefetch") },
+ { "avx512er", NC_("x86-flag", /*/flag:avx512er*/ "AVX-512 Exponential and Reciprocal") },
+ { "avx512cd", NC_("x86-flag", /*/flag:avx512cd*/ "AVX-512 Conflict Detection") },
+ { "sha_ni", NC_("x86-flag", /*/flag:sha_ni*/ "SHA1/SHA256 Instruction Extensions") },
+ { "avx512bw", NC_("x86-flag", /*/flag:avx512bw*/ "AVX-512 Byte/Word instructions") },
+ { "avx512vl", NC_("x86-flag", /*/flag:avx512vl*/ "AVX-512 128/256 Vector Length extensions") },
/* Extended state features, CPUID level 0x0000000d:1 (eax) */
- { "xsaveopt", N_("Optimized XSAVE") },
- { "xsavec", N_("XSAVEC") },
- { "xgetbv1", N_("XGETBV with ECX = 1") },
- { "xsaves", N_("XSAVES/XRSTORS") },
+ { "xsaveopt", NC_("x86-flag", /*/flag:xsaveopt*/ "Optimized XSAVE") },
+ { "xsavec", NC_("x86-flag", /*/flag:xsavec*/ "XSAVEC") },
+ { "xgetbv1", NC_("x86-flag", /*/flag:xgetbv1*/ "XGETBV with ECX = 1") },
+ { "xsaves", NC_("x86-flag", /*/flag:xsaves*/ "XSAVES/XRSTORS") },
/* Intel-defined CPU QoS sub-leaf, CPUID level 0x0000000F:0 (edx) */
- { "cqm_llc", N_("LLC QoS") },
+ { "cqm_llc", NC_("x86-flag", /*/flag:cqm_llc*/ "LLC QoS") },
/* Intel-defined CPU QoS sub-leaf, CPUID level 0x0000000F:1 (edx) */
- { "cqm_occup_llc", N_("LLC occupancy monitoring") },
- { "cqm_mbm_total", N_("LLC total MBM monitoring") },
- { "cqm_mbm_local", N_("LLC local MBM monitoring") },
+ { "cqm_occup_llc", NC_("x86-flag", /*/flag:cqm_occup_llc*/ "LLC occupancy monitoring") },
+ { "cqm_mbm_total", NC_("x86-flag", /*/flag:cqm_mbm_total*/ "LLC total MBM monitoring") },
+ { "cqm_mbm_local", NC_("x86-flag", /*/flag:cqm_mbm_local*/ "LLC local MBM monitoring") },
/* AMD-defined CPU features, CPUID level 0x80000008 (ebx) */
- { "clzero", N_("CLZERO instruction") },
- { "irperf", N_("instructions retired performance counter") },
+ { "clzero", NC_("x86-flag", /*/flag:clzero*/ "CLZERO instruction") },
+ { "irperf", NC_("x86-flag", /*/flag:irperf*/ "instructions retired performance counter") },
/* Thermal and Power Management leaf, CPUID level 0x00000006 (eax) */
- { "dtherm", N_("digital thermal sensor") }, /* formerly dts */
- { "ida", N_("Intel Dynamic Acceleration") },
- { "arat", N_("Always Running APIC Timer") },
- { "pln", N_("Intel Power Limit Notification") },
- { "pts", N_("Intel Package Thermal Status") },
- { "hwp", N_("Intel Hardware P-states") },
- { "hwp_notify", N_("HWP notification") },
- { "hwp_act_window", N_("HWP Activity Window") },
- { "hwp_epp", N_("HWP Energy Performance Preference") },
- { "hwp_pkg_req", N_("HWP package-level request") },
+ { "dtherm", NC_("x86-flag", /*/flag:dtherm*/ "digital thermal sensor") }, /* formerly dts */
+ { "ida", NC_("x86-flag", /*/flag:ida*/ "Intel Dynamic Acceleration") },
+ { "arat", NC_("x86-flag", /*/flag:arat*/ "Always Running APIC Timer") },
+ { "pln", NC_("x86-flag", /*/flag:pln*/ "Intel Power Limit Notification") },
+ { "pts", NC_("x86-flag", /*/flag:pts*/ "Intel Package Thermal Status") },
+ { "hwp", NC_("x86-flag", /*/flag:hwp*/ "Intel Hardware P-states") },
+ { "hwp_notify", NC_("x86-flag", /*/flag:hwp_notify*/ "HWP notification") },
+ { "hwp_act_window", NC_("x86-flag", /*/flag:hwp_act_window*/ "HWP Activity Window") },
+ { "hwp_epp", NC_("x86-flag", /*/flag:hwp_epp*/ "HWP Energy Performance Preference") },
+ { "hwp_pkg_req", NC_("x86-flag", /*/flag:hwp_pkg_req*/ "HWP package-level request") },
/* AMD SVM Feature Identification, CPUID level 0x8000000a (edx) */
- { "npt", N_("AMD Nested Page Table support") },
- { "lbrv", N_("AMD LBR Virtualization support") },
- { "svm_lock", N_("AMD SVM locking MSR") },
- { "nrip_save", N_("AMD SVM next_rip save") },
- { "tsc_scale", N_("AMD TSC scaling support") },
- { "vmcb_clean", N_("AMD VMCB clean bits support") },
- { "flushbyasid", N_("AMD flush-by-ASID support") },
- { "decodeassists", N_("AMD Decode Assists support") },
- { "pausefilter", N_("AMD filtered pause intercept") },
- { "pfthreshold", N_("AMD pause filter threshold") },
- { "avic", N_("Virtual Interrupt Controller") },
+ { "npt", NC_("x86-flag", /*/flag:npt*/ "AMD Nested Page Table support") },
+ { "lbrv", NC_("x86-flag", /*/flag:lbrv*/ "AMD LBR Virtualization support") },
+ { "svm_lock", NC_("x86-flag", /*/flag:svm_lock*/ "AMD SVM locking MSR") },
+ { "nrip_save", NC_("x86-flag", /*/flag:nrip_save*/ "AMD SVM next_rip save") },
+ { "tsc_scale", NC_("x86-flag", /*/flag:tsc_scale*/ "AMD TSC scaling support") },
+ { "vmcb_clean", NC_("x86-flag", /*/flag:vmcb_clean*/ "AMD VMCB clean bits support") },
+ { "flushbyasid", NC_("x86-flag", /*/flag:flushbyasid*/ "AMD flush-by-ASID support") },
+ { "decodeassists", NC_("x86-flag", /*/flag:decodeassists*/ "AMD Decode Assists support") },
+ { "pausefilter", NC_("x86-flag", /*/flag:pausefilter*/ "AMD filtered pause intercept") },
+ { "pfthreshold", NC_("x86-flag", /*/flag:pfthreshold*/ "AMD pause filter threshold") },
+ { "avic", NC_("x86-flag", /*/flag:avic*/ "Virtual Interrupt Controller") },
/* Intel-defined CPU features, CPUID level 0x00000007:0 (ecx) */
- { "pku", N_("Protection Keys for Userspace") },
- { "ospke", N_("OS Protection Keys Enable") },
+ { "pku", NC_("x86-flag", /*/flag:pku*/ "Protection Keys for Userspace") },
+ { "ospke", NC_("x86-flag", /*/flag:ospke*/ "OS Protection Keys Enable") },
/* AMD-defined CPU features, CPUID level 0x80000007 (ebx) */
- { "overflow_recov", N_("MCA overflow recovery support") },
- { "succor", N_("uncorrectable error containment and recovery") },
- { "smca", N_("Scalable MCA") },
+ { "overflow_recov", NC_("x86-flag", /*/flag:overflow_recov*/ "MCA overflow recovery support") },
+ { "succor", NC_("x86-flag", /*/flag:succor*/ "uncorrectable error containment and recovery") },
+ { "smca", NC_("x86-flag", /*/flag:smca*/ "Scalable MCA") },
{ NULL, NULL},
};
static struct {
char *name, *meaning;
} bug_meaning[] = {
- { "f00f", N_("Intel F00F bug") },
- { "fdiv", N_("FPU FDIV") },
- { "coma", N_("Cyrix 6x86 coma") },
- { "tlb_mmatch", N_("AMD Erratum 383") },
- { "apic_c1e", N_("AMD Erratum 400") },
- { "11ap", N_("Bad local APIC aka 11AP") },
- { "fxsave_leak", N_("FXSAVE leaks FOP/FIP/FOP") },
- { "clflush_monitor", N_("AAI65, CLFLUSH required before MONITOR") },
- { "sysret_ss_attrs", N_("SYSRET doesn't fix up SS attrs") },
- { "espfix", N_("IRET to 16-bit SS corrupts ESP/RSP high bits") },
- { "null_seg", N_("Nulling a selector preserves the base") }, /* see: detect_null_seg_behavior() */
- { "swapgs_fence", N_("SWAPGS without input dep on GS") },
- { "monitor", N_("IPI required to wake up remote CPU") },
- { "amd_e400", N_("AMD Erratum 400") },
- { NULL, NULL },
+ { "f00f", NC_("x86-flag", /*/bug:f00f*/ "Intel F00F bug") },
+ { "fdiv", NC_("x86-flag", /*/bug:fdiv*/ "FPU FDIV") },
+ { "coma", NC_("x86-flag", /*/bug:coma*/ "Cyrix 6x86 coma") },
+ { "tlb_mmatch", NC_("x86-flag", /*/bug:tlb_mmatch*/ "AMD Erratum 383") },
+ { "apic_c1e", NC_("x86-flag", /*/bug:apic_c1e*/ "AMD Erratum 400") },
+ { "11ap", NC_("x86-flag", /*/bug:11ap*/ "Bad local APIC aka 11AP") },
+ { "fxsave_leak", NC_("x86-flag", /*/bug:fxsave_leak*/ "FXSAVE leaks FOP/FIP/FOP") },
+ { "clflush_monitor", NC_("x86-flag", /*/bug:clflush_monitor*/ "AAI65, CLFLUSH required before MONITOR") },
+ { "sysret_ss_attrs", NC_("x86-flag", /*/bug:sysret_ss_attrs*/ "SYSRET doesn't fix up SS attrs") },
+ { "espfix", NC_("x86-flag", /*/bug:espfix*/ "IRET to 16-bit SS corrupts ESP/RSP high bits") },
+ { "null_seg", NC_("x86-flag", /*/bug:null_seg*/ "Nulling a selector preserves the base") }, /* see: detect_null_seg_behavior() */
+ { "swapgs_fence", NC_("x86-flag", /*/bug:swapgs_fence*/ "SWAPGS without input dep on GS") },
+ { "monitor", NC_("x86-flag", /*/bug:monitor*/ "IPI required to wake up remote CPU") },
+ { "amd_e400", NC_("x86-flag", /*/bug:amd_e400*/ "AMD Erratum 400") },
+ { NULL, NULL },
};
/* from arch/x86/kernel/cpu/powerflags.h */
static struct {
char *name, *meaning;
} pm_meaning[] = {
- { "ts", N_("temperature sensor") },
- { "fid", N_("frequency id control") },
- { "vid", N_("voltage id control") },
- { "ttp", N_("thermal trip") },
- { "tm", N_("hardware thermal control") },
- { "stc", N_("software thermal control") },
- { "100mhzsteps", N_("100 MHz multiplier control") },
- { "hwpstate", N_("hardware P-state control") },
-/* { "", N_("tsc invariant mapped to constant_tsc") }, */
- { "cpb", N_("core performance boost") },
- { "eff_freq_ro", N_("Readonly aperf/mperf") },
- { "proc_feedback", N_("processor feedback interface") },
- { "acc_power", N_("accumulated power mechanism") },
- { NULL, NULL },
+ { "ts", NC_("x86-flag", /*/flag:pm:ts*/ "temperature sensor") },
+ { "fid", NC_("x86-flag", /*/flag:pm:fid*/ "frequency id control") },
+ { "vid", NC_("x86-flag", /*/flag:pm:vid*/ "voltage id control") },
+ { "ttp", NC_("x86-flag", /*/flag:pm:ttp*/ "thermal trip") },
+ { "tm", NC_("x86-flag", /*/flag:pm:tm*/ "hardware thermal control") },
+ { "stc", NC_("x86-flag", /*/flag:pm:stc*/ "software thermal control") },
+ { "100mhzsteps", NC_("x86-flag", /*/flag:pm:100mhzsteps*/ "100 MHz multiplier control") },
+ { "hwpstate", NC_("x86-flag", /*/flag:pm:hwpstate*/ "hardware P-state control") },
+ { "cpb", NC_("x86-flag", /*/flag:pm:cpb*/ "core performance boost") },
+ { "eff_freq_ro", NC_("x86-flag", /*/flag:pm:eff_freq_ro*/ "Readonly aperf/mperf") },
+ { "proc_feedback", NC_("x86-flag", /*/flag:pm:proc_feedback*/ "processor feedback interface") },
+ { "acc_power", NC_("x86-flag", /*/flag:pm:acc_power*/ "accumulated power mechanism") },
+ { NULL, NULL }
};
GHashTable *cpu_flags = NULL;
@@ -620,15 +619,15 @@ populate_cpu_flags_list_internal()
for (i = 0; flag_meaning[i].name != NULL; i++) {
g_hash_table_insert(cpu_flags, flag_meaning[i].name,
- _(flag_meaning[i].meaning) );
+ C_("x86-flag", flag_meaning[i].meaning) );
}
for (i = 0; bug_meaning[i].name != NULL; i++) {
g_hash_table_insert(cpu_flags, bug_meaning[i].name,
- _(bug_meaning[i].meaning) );
+ C_("x86-flag", bug_meaning[i].meaning) );
}
for (i = 0; pm_meaning[i].name != NULL; i++) {
g_hash_table_insert(cpu_flags, pm_meaning[i].name,
- _(pm_meaning[i].meaning) );
+ C_("x86-flag", pm_meaning[i].meaning) );
}
}