mirror of
https://github.com/libretro/virtualjaguar-libretro.git
synced 2026-11-07 04:36:00 -10:00
The first sanitizer run (now correctly linking with -shared-libasan) caught real UB in src/m68000/readcpu.c:1004 -- "shift exponent -1 is negative". The UAE 68K core (machine-generated, ~1.8 MB cpuemu.c) uses negative shifts intentionally; fixing requires patching the generator upstream and is out of scope. We treat src/m68000/ as opaque per CLAUDE.md. Add .ubsan-ignorelist with src:src/m68000/* and pass it via -fsanitize-ignorelist so the sanitizer job isolates new bugs in OUR code without burying the signal under upstream noise. Also fix docs/profiling.md: SIMD is currently wired into the ACCURATE blitter's pixel kernel (BlitterMidsummer2's DATA() macro), not the fast blitter as the doc claimed. Caught by the blitter spike research agent. Cross-references issue #124 for the SIMD widening plan. Co-Authored-By: Claude Opus 4.7 <[email protected]>
12 lines
479 B
Plaintext
12 lines
479 B
Plaintext
# UBSAN ignorelist (clang -fsanitize-ignorelist=).
|
|
#
|
|
# src/m68000/ is the UAE 68000 emulator (machine-generated, ~1.8 MB
|
|
# cpuemu.c). It uses negative shifts and other UB idioms intentionally
|
|
# (the generator emits them; fixing requires patching the generator
|
|
# upstream). We treat the directory as opaque, so UBSAN findings inside
|
|
# it are noise that hides real issues in our own code.
|
|
#
|
|
# Add other entries here ONLY with a one-line comment justifying why.
|
|
|
|
src:src/m68000/*
|