Move cpuid checks inline.

During fat runtime function resolution there was a chance that the PLT
might not be initialised in time for us to call the cpuid check
functions. Moving them inline means there is no PLT to worry about.

Fixes #78
This commit is contained in:
Matthew Barr
2017-12-11 16:02:26 +11:00
committed by Xiang Wang
parent 3da5fc7cf3
commit 50ea83cb26
6 changed files with 225 additions and 165 deletions

View File

@@ -30,7 +30,7 @@
#include "hs_common.h"
#include "hs_runtime.h"
#include "ue2common.h"
#include "util/cpuid_flags.h"
#include "util/cpuid_inline.h"
#include "util/join.h"
#if defined(DISABLE_AVX512_DISPATCH)