summaryrefslogtreecommitdiffstats
path: root/vpp/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-03-04 12:44:14 +0100
committerDamjan Marion <damarion@cisco.com>2016-03-04 15:02:27 +0100
commit522e4864b9b8b6751a9cb35ad8f1926f5d162837 (patch)
treee26cf9c524c94a68b1a1203d738ad91dcaa53c13 /vpp/vnet
parent196cb3d82a7085a9122efadbe4ef1fd8ad19b01e (diff)
Add CPU detection functions
Change-Id: Id7ea0410d6a789000c747c36a7e50076e31dc29a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp/vnet')
-rw-r--r--vpp/vnet/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vpp/vnet/main.c b/vpp/vnet/main.c
index 04ee6b76..9d89ce70 100644
--- a/vpp/vnet/main.c
+++ b/vpp/vnet/main.c
@@ -64,6 +64,7 @@ int main (int argc, char * argv[])
void vlib_set_get_handoff_structure_cb (void *cb);
#if __x86_64__
+ __builtin_cpu_init ();
const char * msg = "ERROR: This binary requires CPU with %s extensions.\n";
#define _(a,b) \
if (!__builtin_cpu_supports(a)) \