tactcomplabs / rev

RISC-V SST CPU Component
Other
17 stars 21 forks source link

Add csrs pseudoinstruction #303

Closed leekillough closed 3 months ago

leekillough commented 3 months ago

This adds the csrs %csr, %rs1 pseudoinstruction which is the csrrs instruction with rd == x0. The execute function is still the same as csrrs, but csrs %csr, %rs1 is displayed instead of csrrs %rd, %csr, %rs1 during tracing when rd == x0. The corresponding pseudoinstruction csrc is already in the table.