Skip to content

cs_regs_access doesn't handle ARM64_OP_SYS type #1760

Closed
@busmaker

Description

@busmaker

Hi, I just found an issue that cs_regs_access didn't parse mrs x8, tpidr_el0 (bytes: 48 D0 3B D5) correctly, the x8 is destination and tpidr_el0 should be the source, but instead that it parsed x8 as destination and x8 as source.

I took quick glance into cs_regs_access function found it just handle the ARM64_OP_REG and ARM_OP_MEM types, and the tpidr_el0 operand is marked as ARM64_OP_SYS, so it's skipped.

I don't know it's a bug or a feature, or there's another function that I should use for parsing sysmte registers?

thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions