Do not check if we should show the prefetchw error message if we already have an avx error message.

mtmsrd writes the EE bit only now.
This commit is contained in:
chss95cs@gmail.com
2023-04-02 14:26:01 -04:00
parent e9d1e51c32
commit 356300d14c
2 changed files with 17 additions and 8 deletions

View File

@@ -25,12 +25,15 @@ class StartupCpuFeatureCheck {
"the "
"FAQ for system requirements at https://xenia.jp";
}
unsigned int data[4];
Xbyak::util::Cpu::getCpuid(0x80000001, data);
if (!(data[2] & (1U << 8))) {
error_message =
"Your cpu does not support PrefetchW, which Xenia Canary "
"requires.";
if (!error_message) {
unsigned int data[4];
Xbyak::util::Cpu::getCpuid(0x80000001, data);
if (!(data[2] & (1U << 8))) {
error_message =
"Your cpu does not support PrefetchW, which Xenia Canary "
"requires.";
}
}
if (error_message == nullptr) {
return;