Skip to content

Commit

Permalink
FENCE has a field called FM in bits 31:28
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Aug 6, 2018
1 parent 3aa3206 commit 7dd3b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opcodes
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ sh imm12hi rs1 rs2 imm12lo 14..12=1 6..2=0x08 1..0=3
sw imm12hi rs1 rs2 imm12lo 14..12=2 6..2=0x08 1..0=3
sd imm12hi rs1 rs2 imm12lo 14..12=3 6..2=0x08 1..0=3

fence 31..28=ignore pred succ 19..15=ignore 14..12=0 11..7=ignore 6..2=0x03 1..0=3
fence fm pred succ 19..15=ignore 14..12=0 11..7=ignore 6..2=0x03 1..0=3
fence.i 31..28=ignore 27..20=ignore 19..15=ignore 14..12=1 11..7=ignore 6..2=0x03 1..0=3

# RV32M
Expand Down
3 changes: 2 additions & 1 deletion parse-opcodes
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ arglut['rs1'] = (19,15)
arglut['rs2'] = (24,20)
arglut['rs3'] = (31,27)
arglut['aqrl'] = (26,25)
arglut['fm'] = (31,28)
arglut['pred'] = (27,24)
arglut['succ'] = (23,20)
arglut['rm'] = (14,12)
Expand Down Expand Up @@ -574,7 +575,7 @@ def print_fence_type(name,match,arguments):
\\cline{2-11}
""" % \
( \
binary(yank(match,28,4),4), \
str_arg('fm','fm',match,arguments), \
str_arg('pred','pred',match,arguments), \
str_arg('succ','',match,arguments), \
str_arg('rs1','',match,arguments), \
Expand Down

0 comments on commit 7dd3b0e

Please sign in to comment.