Skip to content

fix(cstest): guard disabled RISC-V CSR comparison - #10

Merged
gmh5225 merged 1 commit into
nextfrom
codex/cstest-disabled-riscv
Oct 7, 2026
Merged

gmh5225 merged 1 commit into
nextfrom
codex/cstest-disabled-riscv

Conversation

@gmh5225

@gmh5225 gmh5225 commented Oct 7, 2026

Copy link
Copy Markdown

Building cstest with RISC-V disabled fails to link because the CSR comparator still references getSysRegName, whose implementation belongs to that optional backend. Guard the comparison with the existing backend definition and fail the comparison if it is reached without RISC-V support. Keep enabled RISC-V comparisons unchanged and format the modified function using LLVM conventions.

Validation: reproduced the undefined symbol before the fix; the complete GCC x86-only build now succeeds with warnings kept as errors. All 76 x86 unit/negative checks pass, the x86 detail corpus passes all 444 decoded instructions, and the enabled RISC-V detail corpus passes all 375 instructions before and after. Only the test tool changes; production decoding sources are untouched.

@gmh5225
gmh5225 merged commit 58f2257 into next Oct 7, 2026
109 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants