aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-05-13 23:31:49 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-05-13 23:31:49 -0700
commitc8bea5d3b61b04381221398f4085e34281a788b6 (patch)
tree2ee19c3d0d0fcc95c903a6aa04354c27ebce52a9
parente9eb2c4eba00a8460503ec3570d808e9eea1581c (diff)
downloadriscv-opcodes-c8bea5d3b61b04381221398f4085e34281a788b6.zip
riscv-opcodes-c8bea5d3b61b04381221398f4085e34281a788b6.tar.gz
riscv-opcodes-c8bea5d3b61b04381221398f4085e34281a788b6.tar.bz2
Remove arg lists from latex tables
-rwxr-xr-xparse-opcodes43
1 files changed, 1 insertions, 42 deletions
diff --git a/parse-opcodes b/parse-opcodes
index b3f8b1f..04bf70f 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -179,48 +179,7 @@ def str_arg(arg0,name,match,arguments):
return binary(yank(match,start,len),len)
def str_inst(name,arguments):
- ret = name.replace('.rv32','').upper() + ' '
- if 'imm12hi' in arguments and 'imm12lo' in arguments:
- arguments.remove('imm12hi')
- arguments.remove('imm12lo')
- arguments.append('imm')
- if 'bimm12hi' in arguments and 'bimm12lo' in arguments:
- arguments.remove('bimm12hi')
- arguments.remove('bimm12lo')
- arguments.append('imm')
- if name[:3] == 'csr':
- arguments.remove('imm12')
- arguments.remove('rs1')
- arguments.append('csr')
- arguments.append('imm' if name[-1] == 'i' else 'rs1')
- if 'imm12' in arguments:
- arguments.remove('imm12')
- arguments.append('imm')
- if 'imm20' in arguments:
- arguments.remove('imm20')
- arguments.append('imm')
- if 'jimm20' in arguments:
- arguments.remove('jimm20')
- arguments.append('imm')
- if 'zimm' in arguments:
- arguments.remove('zimm')
- arguments.append('imm')
- if 'shamtw' in arguments:
- arguments.remove('shamtw')
- arguments.append('shamt')
- if 'aqrl' in arguments:
- arguments.remove('aqrl')
- if 'rm' in arguments:
- arguments.remove('rm')
- if 'pred' in arguments:
- arguments.remove('pred')
- if 'succ' in arguments:
- arguments.remove('succ')
- for idx in range(len(arguments)):
- ret = ret + arguments[idx]
- if idx != len(arguments)-1:
- ret = ret + ','
- return ret
+ return name.replace('.rv32','').upper()
def print_unimp_type(name,match,arguments):
print """