Skip to content

Commit

Permalink
Generalize fence.tso instruction
Browse files Browse the repository at this point in the history
Since `fence.tso' instruction is encoded as a FENCE instruction with
fm=1000, predecessor=RW, and successor=RW (as per the ISA Manual),
`fence.tso' is generalized to have unused rs1 and rd operands (shall
be zero on standard software).
  • Loading branch information
a4lg committed Jul 9, 2022
1 parent d2bbcb8 commit 86cb748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rv_i
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ or rd rs1 rs2 31..25=0 14..12=6 6..2=0x0C 1..0=3
and rd rs1 rs2 31..25=0 14..12=7 6..2=0x0C 1..0=3
fence fm pred succ rs1 14..12=0 rd 6..2=0x03 1..0=3
#specialized fences
$pseudo_op rv_i::fence fence.tso 31..28=8 27..24=3 23..20=3 19..15=0 14..12=0 11..7=0 6..2=0x03 1..0=3
$pseudo_op rv_i::fence fence.tso 31..28=8 27..24=3 23..20=3 rs1 14..12=0 rd 6..2=0x03 1..0=3
$pseudo_op rv_i::fence pause 31..28=0 27..24=1 23..20=0 19..15=0 14..12=0 11..7=0 6..2=0x03 1..0=3
ecall 31..20=0x000 19..7=0 6..2=0x1C 1..0=3
ebreak 31..20=0x001 19..7=0 6..2=0x1C 1..0=3
Expand Down

0 comments on commit 86cb748

Please sign in to comment.