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 branches read registers #1087

Closed
mbaharan opened this issue Feb 15, 2018 · 0 comments · Fixed by #2121
Closed

ARM branches read registers #1087

mbaharan opened this issue Feb 15, 2018 · 0 comments · Fixed by #2121

Comments

@mbaharan
Copy link

It seems that regs_access() does not wok properly for ARM branch instructions. Here is an example:

Platform: Arm-V8
Code: 0x00 0x00 0x53 0xe3 0xfc 0xff 0xff 0x1a 0x02
Disasm:
0x80001000:	cmp	r3, #0
	op_count: 2
		operands[0].type: REG = r3
		operands[0].access: READ
		operands[1].type: IMM = 0x0
	Update-flags: True
	Registers read: r3
	Registers modified: cpsr
0x80001004:	bne	#0x80000ffc
	op_count: 1
		operands[0].type: IMM = 0x80000ffc
	Code condition: 2
	Registers read: pc
	Registers modified: pc

As it can be seen for bne instruction, cpsr has not been included in Registers read.
It might be good to mention that I am using 'next' branch.

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