Yell at the user when they have an unsupported CPU.

This commit is contained in:
Ben Vanik 2015-06-16 17:46:41 -07:00
parent 51eeb4f039
commit b9c341ebef
1 changed files with 7 additions and 2 deletions

View File

@ -89,8 +89,13 @@ X64Emitter::X64Emitter(X64Backend* backend, XbyakAllocator* allocator)
feature_flags_ |= cpu_.has(Xbyak::util::Cpu::tF16C) ? kX64EmitF16C : 0;
}
// Need movbe.
assert_true(cpu_.has(Xbyak::util::Cpu::tMOVBE));
if (!cpu_.has(Xbyak::util::Cpu::tAVX) ||
!cpu_.has(Xbyak::util::Cpu::tMOVBE)) {
XEFATAL(
"Your CPU is too old to support Xenia. See the FAQ for system "
"requirements at http://xenia.jp");
return;
}
}
X64Emitter::~X64Emitter() = default;