Skip to content

Commit

Permalink
separate cmv from caddi
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqkurd-repo committed Jun 10, 2024
1 parent d33cd80 commit 06d6b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'c_mv': {'c_jr'},
'c_jalr': {'c_ebreak'},
'c_add': {'c_ebreak', 'c_jalr'},
'caddi': {'cmv'}
}

isa_regex = \
Expand Down
5 changes: 3 additions & 2 deletions unratified/rv64_cheri
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
lc rd rs1 imm12 14..12=4 6..2=0x03 1..0=3
sc imm12hi rs1 rs2 imm12lo 14..12=4 6..2=0x08 1..0=3

#need to ADDIW
caddi rd rs1 imm12 14..12=2 6..2=0x06 1..0=3
#next to ADDIW
caddi rd_n0 rs1 imm12 14..12=2 6..2=0x06 1..0=3
cmv 11..7=0x0 rs1 imm12 14..12=2 6..2=0x06 1..0=3
#5-bit immediate and 25 says whether to shift it
scbndsi rd rs1 imm5 31..26=1 14..12=5 6..2=0x04 1..0=3

Expand Down

0 comments on commit 06d6b6f

Please sign in to comment.