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

objdump issue with dcsr #12

Open
yaronbe1 opened this issue Sep 10, 2019 · 0 comments
Open

objdump issue with dcsr #12

yaronbe1 opened this issue Sep 10, 2019 · 0 comments

Comments

@yaronbe1
Copy link

found issue with register address decoding in csrw instruction when we used objdump tool.
Here is original source code:

_start:
li x1, 0x9107
csrw dcsr, x1

Part of objdump output:

80000094 <_start>:
_start():
80000094:
000090b7 lui
ra,0x9
80000098:
10708093 addi
ra,ra,263 # 9107 <_start_exp-0x7fff6ef9>
8000009c:
7b009073 csrw
lpstart0,ra

it seems like dcsr register was decoded as lpstart0 in this case.

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

No branches or pull requests

1 participant