travis: Test with disabled CPU feature detection

Ensure that fallbacks are working correctly.
This commit is contained in:
MerryMage 2018-01-24 19:14:19 +00:00
parent 285fd22c30
commit 30936f5e94
6 changed files with 57 additions and 3 deletions

View file

@ -235,7 +235,11 @@ void BlockOfCode::EnsurePatchLocationSize(CodePtr begin, size_t size) {
}
bool BlockOfCode::DoesCpuSupport(Xbyak::util::Cpu::Type type) const {
#ifdef DYNARMIC_ENABLE_CPU_FEATURE_DETECTION
return cpu_info.has(type);
#else
return false;
#endif
}
} // namespace BackendX64