tinycc/win32
Benjamin Oldenburg 5f641e2a25 winnt.h: fix ARM64 CONTEXT struct layout mismatch
The fallback CONTEXT struct for ARM64 had multiple structural issues:
- ContextFlags was DWORD64 (8 bytes) instead of ULONG (4 bytes)
- Missing Cpsr field entirely
- Missing DECLSPEC_ALIGN(16) attribute
- X registers as simple array X[29] instead of union with named struct X[31]

These mismatches caused incorrect struct size and field offsets, leading to
register corruption when used with Windows APIs like GetThreadContext or
RtlRestoreContext.

The fallback struct now matches the official ARM64_NT_CONTEXT layout exactly,
ensuring binary compatibility with Windows ARM64 system calls.
2026-04-04 20:02:32 +07:00
..
examples Remove trailing whitespaces from source files 2026-04-04 20:02:32 +07:00
include winnt.h: fix ARM64 CONTEXT struct layout mismatch 2026-04-04 20:02:32 +07:00
lib arm64: support mnemonic win32 stack helpers 2026-04-04 20:02:32 +07:00
build-tcc.bat arm64: clarify inline asm support boundary 2026-04-04 20:02:32 +07:00
tcc-win32.txt win32: tcc-win32.txt: fixup 2 mingw includes note 2024-10-23 16:32:49 +03:00
test_arm64_backtrace.c Add ARM64 Windows coverage and fix native run guard 2026-04-04 20:02:31 +07:00
test_arm64_inline_asm.c Add ARM64 Windows coverage and fix native run guard 2026-04-04 20:02:31 +07:00
test_arm64_libtcc_context.c Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_arm64_libtcc_context.S arm64: support mnemonic win32 stack helpers 2026-04-04 20:02:32 +07:00
test_arm64.c Add and stabilize Windows ARM64 support 2026-04-04 20:02:31 +07:00
test_pe_field_alignment.c Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_pe_field_alignment.ref Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_rstdin.c Fix Windows ARM64 runtime regressions 2026-04-04 20:02:31 +07:00
test_run_argv.c Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_run_argv.ref Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_run_exit.c Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_run_stdin.c Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00
test_run_stdin.ref Fix Windows ARM64 runtime regressions and coverage 2026-04-04 20:02:31 +07:00