MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_cpu_get_features

Function rte_cpu_get_features

dpdk/lib/eal/riscv/rte_cpuflags.c:83–88  ·  view source on GitHub ↗

* Read AUXV software register and get cpu features for ARM */

Source from the content-addressed store, hash-verified

81 * Read AUXV software register and get cpu features for ARM
82 */
83static void
84rte_cpu_get_features(hwcap_registers_t out)
85{
86 out[REG_HWCAP] = rte_cpu_getauxval(AT_HWCAP);
87 out[REG_HWCAP2] = rte_cpu_getauxval(AT_HWCAP2);
88}
89
90/*
91 * Checks if a particular flag is available on current machine.

Callers 1

rte_cpu_get_flag_enabledFunction · 0.70

Calls 1

rte_cpu_getauxvalFunction · 0.50

Tested by

no test coverage detected