Skip to content

Fix live-register access after accessor refactor - #5

Merged
gerph merged 1 commit into
masterfrom
fix-disassembly-accessor-reads
Aug 24, 2026
Merged

Fix live-register access after accessor refactor#5
gerph merged 1 commit into
masterfrom
fix-disassembly-accessor-reads

Conversation

@gerph

@gerph gerph commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

Fix live-register annotations after disassembly access functions were moved
out of the architecture decoders and into the accessor object.

Several ARM and AArch64 paths still called get_reg() or get_pstate() on
the decoder itself. Enabling live-register annotations therefore raised an
AttributeError instead of producing disassembly.

Changes

  • Route the remaining ARM register and processor-state reads through
    self.access.
  • Route the remaining AArch64 register reads through self.access.
  • Keep the existing annotation and instruction-specific behaviour unchanged.

Testing

  • Ran make tests successfully.
  • Exercised ARM and AArch64 MOV instructions with live_registers=True and
    confirmed that both produce the expected register-value annotations.

The accessor split left several ARM and AArch64 live-register paths
calling methods on the disassembler itself. Enabling register annotations
therefore raised AttributeError instead of returning disassembly.

Route all remaining register and processor-state reads through the access
object, matching the restructured ownership of those operations.
@gerph
gerph merged commit bfee3b7 into master Aug 24, 2026
2 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.

1 participant