From b9c341ebefe5e36f936f18e319b39bf6281602f7 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 16 Jun 2015 17:46:41 -0700 Subject: [PATCH] Yell at the user when they have an unsupported CPU. --- src/xenia/cpu/backend/x64/x64_emitter.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/backend/x64/x64_emitter.cc b/src/xenia/cpu/backend/x64/x64_emitter.cc index da7909063..7fdda2718 100644 --- a/src/xenia/cpu/backend/x64/x64_emitter.cc +++ b/src/xenia/cpu/backend/x64/x64_emitter.cc @@ -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;