Skip to content

Commit

Permalink
Split cheri encodings into seperate extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
toby.wenman committed Nov 28, 2024
1 parent ff3bb25 commit e59c682
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
4 changes: 4 additions & 0 deletions extensions/unratified/rv64_zbhlrsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lr.b rd rs1 24..20=0 aq rl 31..29=0 28..27=2 14..12=0 6..2=0x0B 1..0=3
lr.h rd rs1 24..20=0 aq rl 31..29=0 28..27=2 14..12=1 6..2=0x0B 1..0=3
sc.b rd rs1 rs2 aq rl 31..29=0 28..27=3 14..12=0 6..2=0x0B 1..0=3
sc.h rd rs1 rs2 aq rl 31..29=0 28..27=3 14..12=1 6..2=0x0B 1..0=3
2 changes: 2 additions & 0 deletions extensions/unratified/rv64_zcherihybrid
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
modesw.cap 31..25=9 24..15=0 14..12=1 11..7=0 6..2=0x0C 1..0=3
modesw.int 31..25=10 24..15=0 14..12=1 11..7=0 6..2=0x0C 1..0=3
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,6 @@ gclen rd rs1 31..25=8 24..20=6 14..12=0 6..2=0x0C 1..0=3
cram rd rs1 31..25=8 24..20=7 14..12=0 6..2=0x0C 1..0=3
sentry rd rs1 31..25=8 24..20=8 14..12=0 6..2=0x0C 1..0=3

modesw.cap 31..25=9 24..15=0 14..12=1 11..7=0 6..2=0x0C 1..0=3
modesw.int 31..25=10 24..15=0 14..12=1 11..7=0 6..2=0x0C 1..0=3

#adjacent to sh[123]add
sh4add rd rs1 rs2 31..25=16 14..12=7 6..2=0x0C 1..0=3

#adjacent to sh[123]add.uw
sh4add.uw rd rs1 rs2 31..25=16 14..12=7 6..2=0x0E 1..0=3

#regular encodings - will become a separate extension
lr.b rd rs1 24..20=0 aq rl 31..29=0 28..27=2 14..12=0 6..2=0x0B 1..0=3
lr.h rd rs1 24..20=0 aq rl 31..29=0 28..27=2 14..12=1 6..2=0x0B 1..0=3
sc.b rd rs1 rs2 aq rl 31..29=0 28..27=3 14..12=0 6..2=0x0B 1..0=3
sc.h rd rs1 rs2 aq rl 31..29=0 28..27=3 14..12=1 6..2=0x0B 1..0=3

#regular encodings for double width datatype
amoswap.c rd rs1 rs2 aq rl 31..29=0 28..27=1 14..12=4 6..2=0x0B 1..0=3
lr.c rd rs1 24..20=0 aq rl 31..29=0 28..27=2 14..12=4 6..2=0x0B 1..0=3
Expand Down

0 comments on commit e59c682

Please sign in to comment.