Skip to content

Commit

Permalink
Fix CPU feature specification on virtualized x64.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jul 6, 2020
1 parent c769602 commit 6fd5b82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/processor_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,12 @@ get_llvm_target_noext(const TargetData<feature_sz> &data)
features.push_back("+sse2");
features.push_back("+mmx");
features.push_back("+fxsr");
#ifdef _CPU_X86_64_
// This is required to make LLVM happy if LLVM's feature based CPU arch guess
// returns a value that may not have 64bit support.
// This can happen with virtualization.
features.push_back("+64bit");
#endif
return std::make_pair(std::move(name), std::move(features));
}

Expand Down

0 comments on commit 6fd5b82

Please sign in to comment.