upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index a797fc19c..37ce6656c 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -176,6 +176,7 @@ void start_title_peek(std::uint8_t* base) {
176 176
177} // namespace 177} // namespace
178 178
179#include "avx2_emulation.h"
179#include "base_reservation.h" 180#include "base_reservation.h"
180#include "compile_gate_policy.h" 181#include "compile_gate_policy.h"
181#include "bmi_emulation.h" 182#include "bmi_emulation.h"
@@ -567,6 +568,12 @@ int wmain(int argc, wchar_t** argv) {
567 if (!rt::bmi_emulation::install()) 568 if (!rt::bmi_emulation::install())
568 std::fprintf(stderr, "[rt] cpu: AddVectoredExceptionHandler (BMI) failed (error %lu); instructions this CPU " 569 std::fprintf(stderr, "[rt] cpu: AddVectoredExceptionHandler (BMI) failed (error %lu); instructions this CPU "
569 "lacks will stop the game\n", GetLastError()); 570 "lacks will stop the game\n", GetLastError());
571 if (const auto avx2 = rt::avx2_emulation::detect_host(); !avx2.avx2 || !avx2.fma || !avx2.f16c)
572 std::fprintf(stderr, "[rt] cpu: this CPU lacks%s%s%s; the game's uses are emulated (docs/cpu_features.md)\n",
573 avx2.avx2 ? "" : " AVX2", avx2.fma ? "" : " FMA3", avx2.f16c ? "" : " F16C");
574 if (!rt::avx2_emulation::install())
575 std::fprintf(stderr, "[rt] cpu: AddVectoredExceptionHandler (AVX2) failed (error %lu); instructions this CPU "
576 "lacks will stop the game\n", GetLastError());
570 577
571 try { 578 try {
572 rt::Loader loader(game_dir); 579 rt::Loader loader(game_dir);