diff options
| author | QemmHD <290605352+QemmHD@users.noreply.github.com> | 2026-11-24 10:22:49 -0500 |
|---|---|---|
| committer | QemmHD <290605352+QemmHD@users.noreply.github.com> | 2026-11-24 10:24:51 -0500 |
| commit | 119d5b920cfeddf9bb811102907b1078a7a4195c (patch) | |
| tree | 0c2f1f6845bdf942421aada626084d0e4ebf5b28 /runtime/src/host_cpu.cpp | |
| parent | b2360deeb61e5c7bb355c624e49d9461bc4a419c (diff) | |
runtime: run a /GA build of tiny_game under gta6rt (run_tiny_game_ga_tls)
loader_tls checks the /GA rewrite inside a test EXE that links pe_loader.cpp. The stop BL-1 describes is in
gta6rt itself: there module TLS index 0 holds gta6rt.exe's own TLS, which the runtime uses on every thread,
and the title's entry point runs on a thread gta6rt starts. Nothing ran a /GA image through that path.
tiny_game_ga is tiny_game.cpp built with /GA (and /INCLUDE:_tls_used, as tiny_ga_tls has, because /GA can
drop the last _tls_index reference). run_tiny_game_ga_tls runs its `tls` mode through gta6rt --run:
thread_local on the entry thread and on a thread the game starts.
It passes on main as it is; no loader change. With LEONIDA_TLS_GA_PATCH=0 the same run fails its thread_local
check and exits 1, while the non-/GA tiny_game still passes with the rewrite off, so the test separates the
two shapes. That run writes into gta6rt's own TLS, so it is not registered as a test.
Tested on Windows 11, MSVC 19.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo, NVIDIA RTX 4070 SUPER driver
621.24: run_tiny_game_ga_tls passes, 30 runs in a row; ctest -R run_tiny_game 11 of 11; full ctest 305 of
307, the two failures main has (d3d12_execute_indirect_validation, d3d12_depth_resolve), and the per-test
results differ from main's only by the new test. tests/test_ctest_registration.py passes. Not run on the
retail executable: that needs game files.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
Diffstat (limited to 'runtime/src/host_cpu.cpp')
0 files changed, 0 insertions, 0 deletions