Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM get sysreg name #1713

Closed
eagleoflqj opened this issue Dec 24, 2020 · 0 comments · Fixed by #2116
Closed

ARM get sysreg name #1713

eagleoflqj opened this issue Dec 24, 2020 · 0 comments · Fixed by #2116

Comments

@eagleoflqj
Copy link

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
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 a pull request may close this issue.

1 participant