diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-02-20 21:50:40 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-02-20 21:50:40 -0800 |
commit | ee4249cf363837a8b5551aa6671a901a39786d2f (patch) | |
tree | 8b02fa2951cf0ff588b8df8ed26bd4c29ffeb685 /parse-opcodes | |
parent | 689c591e0e7218732af884f0fac97e8ca2605cf8 (diff) | |
download | riscv-opcodes-ee4249cf363837a8b5551aa6671a901a39786d2f.zip riscv-opcodes-ee4249cf363837a8b5551aa6671a901a39786d2f.tar.gz riscv-opcodes-ee4249cf363837a8b5551aa6671a901a39786d2f.tar.bz2 |
Remove sfence.vm and add sfence.vma
Diffstat (limited to 'parse-opcodes')
-rwxr-xr-x | parse-opcodes | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/parse-opcodes b/parse-opcodes index 0437480..3818309 100755 --- a/parse-opcodes +++ b/parse-opcodes @@ -675,8 +675,6 @@ def print_footer(caption=''): """ % caption def print_inst(n): - is_system = (match[n] & 0x7f) == (match['scall'] & 0x7f) - if n == 'fence' or n == 'fence.i': print_fence_type(n, match[n], arguments[n]) elif 'aqrl' in arguments[n]: @@ -689,9 +687,9 @@ def print_inst(n): print_u_type(n, match[n], arguments[n]) elif 'jimm20' in arguments[n]: print_uj_type(n, match[n], arguments[n]) - elif is_system and n[:3] == 'csr': + elif n[:3] == 'csr': print_csr_type(n, match[n], arguments[n]) - elif 'imm12' in arguments[n] or is_system: + elif 'imm12' in arguments[n] or n == 'ecall' or n == 'ebreak': print_i_type(n, match[n], arguments[n]) elif 'imm12hi' in arguments[n]: print_s_type(n, match[n], arguments[n]) @@ -713,7 +711,7 @@ def make_supervisor_latex_table(): print_subtitle('Interrupt-Management Instructions') print_insts('wfi') print_subtitle('Memory-Management Instructions') - print_insts('sfence.vm') + print_insts('sfence.vma') print_footer('\\caption{RISC-V Privileged Instructions}') def make_latex_table(): |