Advertisement
Guest User

xenia avx git patch

a guest
Jun 13th, 2024
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. diff --git a/src/xenia/base/main_init_win.cc b/src/xenia/base/main_init_win.cc
  2. index a0065aac6..e2e7c8b85 100644
  3. --- a/src/xenia/base/main_init_win.cc
  4. +++ b/src/xenia/base/main_init_win.cc
  5. @@ -21,9 +21,8 @@ class StartupCpuFeatureCheck {
  6. const char* error_message = nullptr;
  7. if (!cpu.has(Xbyak::util::Cpu::tAVX)) {
  8. error_message =
  9. - "Your CPU does not support AVX, which is required by Xenia. See "
  10. - "the "
  11. - "FAQ for system requirements at https://xenia.jp";
  12. + "Your CPU does not advertise AVX support, which is required by Xenia. "
  13. + "If running on Apple Silicon (Sequoia), this is fine.";
  14. }
  15. if (error_message == nullptr) {
  16. return;
  17. @@ -31,7 +30,7 @@ class StartupCpuFeatureCheck {
  18. // TODO(gibbed): detect app type and printf instead, if needed?
  19. MessageBoxA(nullptr, error_message, "Xenia Error",
  20. MB_OK | MB_ICONERROR | MB_SETFOREGROUND);
  21. - ExitProcess(static_cast<uint32_t>(-1));
  22. + // ExitProcess(static_cast<uint32_t>(-1));
  23. }
  24. }
  25. };
  26. diff --git a/src/xenia/cpu/backend/x64/x64_backend.cc b/src/xenia/cpu/backend/x64/x64_backend.cc
  27. index 5125feb4d..a87215a05 100644
  28. --- a/src/xenia/cpu/backend/x64/x64_backend.cc
  29. +++ b/src/xenia/cpu/backend/x64/x64_backend.cc
  30. @@ -225,8 +225,9 @@ bool X64Backend::Initialize(Processor* processor) {
  31.  
  32. Xbyak::util::Cpu cpu;
  33. if (!cpu.has(Xbyak::util::Cpu::tAVX)) {
  34. - XELOGE("This CPU does not support AVX. The emulator will now crash.");
  35. - return false;
  36. + // XELOGE("This CPU does not support AVX. The emulator will now crash.");
  37. + XELOGE("This CPU does not advertise AVX support. The emulator will crash if AVX is missing");
  38. + // return false;
  39. }
  40.  
  41. // Need movbe to do advanced LOAD/STORE tricks.
  42. diff --git a/src/xenia/cpu/backend/x64/x64_emitter.cc b/src/xenia/cpu/backend/x64/x64_emitter.cc
  43. index 720ed9781..d04995b15 100644
  44. --- a/src/xenia/cpu/backend/x64/x64_emitter.cc
  45. +++ b/src/xenia/cpu/backend/x64/x64_emitter.cc
  46. @@ -92,12 +92,12 @@ X64Emitter::X64Emitter(X64Backend* backend, XbyakAllocator* allocator)
  47. backend_(backend),
  48. code_cache_(backend->code_cache()),
  49. allocator_(allocator) {
  50. - if (!cpu_.has(Xbyak::util::Cpu::tAVX)) {
  51. - xe::FatalError(
  52. - "Your CPU does not support AVX, which is required by Xenia. See the "
  53. - "FAQ for system requirements at https://xenia.jp");
  54. - return;
  55. - }
  56. + // if (!cpu_.has(Xbyak::util::Cpu::tAVX)) {
  57. + // xe::FatalError(
  58. + // "Your CPU does not support AVX, which is required by Xenia. See the "
  59. + // "FAQ for system requirements at https://xenia.jp");
  60. + // return;
  61. + // }
  62.  
  63. feature_flags_ = amd64::GetFeatureFlags();
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement