Skip to content

ARM get sysreg name #1713

@eagleoflqj

Description

@eagleoflqj

For ARM_OP_REG we call cs_reg_name, but for ARM_OP_SYSREG we can't.
https://github.com/aquynh/capstone/blob/8984920722733400e93f695a0c37a80158341103/cstool/cstool_arm.c#L29-L30
https://github.com/aquynh/capstone/blob/8984920722733400e93f695a0c37a80158341103/cstool/cstool_arm.c#L68-L69

$ ./cstool -d cortexm 80f30988
 0  80 f3 09 88  msr	psp, r0
	ID: 90 (msr)
	op_count: 2
		operands[0].type: SYSREG = 276
		operands[1].type: REG = r0
		operands[1].access: READ
	Registers read: r0
	Groups: thumb mclass

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