Skip to content

Fix RV64-only Zalasr instruction placement - #447

Merged
Andrew Waterman (aswaterman) merged 1 commit into
riscv:masterfrom
vera-rubin:fix/zalasr-rv64
Nov 25, 2026
Merged

Andrew Waterman (aswaterman) merged 1 commit into
riscv:masterfrom
vera-rubin:fix/zalasr-rv64

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

Selecting rv_i rv32_i rv_zalasr exports ld_aq and sd_rl in JSON and C headers, although Zalasr 1.0 defines LD.AQ/LD.AQRL and SD.RL/SD.AQRL only for RV64.

make encoding.out.h EXTENSIONS='rv_i rv32_i rv_zalasr'

The two records move unchanged to a new extensions/rv64_zalasr, following the rv64_ file naming used for other RV64-only instructions. RV64 builds that list extensions explicitly now select rv_zalasr rv64_zalasr; the default rv* set picks up both.

The new test_zalasr_instruction_widths checks that RV32 gets only the byte, halfword and word forms and that RV64 also gets ld_aq and sd_rl with unchanged encodings. It fails before this change and passes after it, along with the rest of tests/test.py (18 tests). Default artifact generation still passes and encoding.out.h is unchanged.

@aswaterman
Andrew Waterman (aswaterman) merged commit d403f0c into riscv:master Nov 25, 2026
1 check failed
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