Open yaronbe1 opened 5 years ago
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.
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.