Skip to content

Aarch64/ARM64: Fix register access for LSE atomics#2978

Merged
Rot127 merged 2 commits into
capstone-engine:v5from
Rot127:aarch64-atmoics
Jun 29, 2026
Merged

Aarch64/ARM64: Fix register access for LSE atomics#2978
Rot127 merged 2 commits into
capstone-engine:v5from
Rot127:aarch64-atmoics

Conversation

@Rot127

@Rot127 Rot127 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

This is #2953 with the test case moved so it actually runs it.

Test plan

Added

Closing issues

closes #2953

The LSE atomics (CAS, CASP, SWP and the LD<op>/ST<op> families)
had empty operand access, so cs_regs_access reported neither the
value registers read nor the destination written.

Populate the access table, and handle the CASP register pairs in
AArch64_reg_access, whose second element gets no access info from
the printer.
@Rot127 Rot127 force-pushed the aarch64-atmoics branch from 1f9e160 to cb6267b Compare June 29, 2026 11:40
@Rot127 Rot127 changed the title Aarch64 atmoics Aarch64 atomics Jun 29, 2026
@Rot127 Rot127 changed the title Aarch64 atomics Aarch64/ARM64: Fix register access for LSE atomics Jun 29, 2026
@Rot127 Rot127 merged commit a321c63 into capstone-engine:v5 Jun 29, 2026
24 checks passed
@Rot127 Rot127 deleted the aarch64-atmoics branch June 29, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants