diff options
| author | robot00f <robot00f@users.noreply.github.com> | 2026-11-26 22:05:36 -0300 |
|---|---|---|
| committer | robot00f <robot00f@users.noreply.github.com> | 2026-11-27 18:49:18 -0300 |
| commit | 402035db4935d794cfdca1833e7ef73765cc88c4 (patch) | |
| tree | 4eaa9c929f2321dad557fdb87c7138b33e440146 /runtime/shims/gameinput.cpp | |
| parent | 8b14930b3d072ee270c294a687b6262f270439ad (diff) | |
runtime(cpu): gate 4-byte VEX fusion behind LEONIDA_ISA_FUSE_4B and scan Clang switch tables
- Gate 4-byte 0xC5 cross-instruction fusion in isa_jit_patch::patch_image behind
opt-in LEONIDA_ISA_FUSE_4B=1 (off by default) and document LEONIDA_ISA_FUSE_4B
in runtime/README.md.
- When LEONIDA_ISA_FUSE_4B=1 is enabled and mark_block_targets resolves a
RIP-relative target inside a non-executable data section, also scan
consecutive signed 32-bit Clang/LLVM table-relative jump-table entries
( arget_rva = tbl_rva + entry) within [beg_rva, end_rva) so fusion never
crosses a relative switch case boundary.
- Update isa_jit_patch_test to verify default non-fusion of 4-byte 0xC5 sites,
opt-in fusion under LEONIDA_ISA_FUSE_4B=1, and fusion refusal across both
image-base RVA tables and negative table-relative int32_t .rdata switch tables.
Diffstat (limited to 'runtime/shims/gameinput.cpp')
0 files changed, 0 insertions, 0 deletions