aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2018-08-06 11:07:56 -0700
committerAndrew Waterman <andrew@sifive.com>2018-08-06 11:07:56 -0700
commit7dd3b0eaeae8ec43afb1efba255d543aaa867d84 (patch)
tree531539fc37e327c3676ff1501cbbfaa8c9f68ee9
parent3aa320603b37c961b9b5689d883b1e24a89f5167 (diff)
downloadriscv-opcodes-7dd3b0eaeae8ec43afb1efba255d543aaa867d84.zip
riscv-opcodes-7dd3b0eaeae8ec43afb1efba255d543aaa867d84.tar.gz
riscv-opcodes-7dd3b0eaeae8ec43afb1efba255d543aaa867d84.tar.bz2
FENCE has a field called FM in bits 31:28
-rw-r--r--opcodes2
-rwxr-xr-xparse-opcodes3
2 files changed, 3 insertions, 2 deletions
diff --git a/opcodes b/opcodes
index 4303abd..03621c5 100644
--- a/opcodes
+++ b/opcodes
@@ -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
diff --git a/parse-opcodes b/parse-opcodes
index bb85865..8e42010 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -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)
@@ -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), \