OSDN Git Service

[X86] Set the cpu_vendor in __cpu_indicator_init to VENDOR_OTHER if cpuid isn't suppo...
authorCraig Topper <craig.topper@intel.com>
Sat, 20 Jun 2020 22:36:04 +0000 (15:36 -0700)
committerCraig Topper <craig.topper@intel.com>
Sat, 20 Jun 2020 22:36:04 +0000 (15:36 -0700)
commit35f7d58328231b0d1fd7b77b149012859ac130f1
treeab0575072c52dcd649f27319afec973338463dd1
parentda6332f5f9f15f7b182f27bc9b8edbf709b48093
[X86] Set the cpu_vendor in __cpu_indicator_init to VENDOR_OTHER if cpuid isn't supported on the CPU.

We need to set the cpu_vendor to a non-zero value to indicate
that we already called __cpu_indicator_init once.

This should only happen on a 386 or 486 CPU.
compiler-rt/lib/builtins/cpu_model.c