summaryrefslogtreecommitdiff
path: root/parse-opcodes
diff options
context:
space:
mode:
authorGravatar Andrew Waterman <waterman@eecs.berkeley.edu>2014-03-11 23:56:10 -0700
committerGravatar Andrew Waterman <waterman@eecs.berkeley.edu>2014-03-11 23:56:10 -0700
commit94c98fd09835dd4e2f0c37cfc7034d7ee74599c8 (patch)
tree337cc29d5326c44d038a4abdaa95fc9e0a051515 /parse-opcodes
parenta414c8a716e8e9c7ac676e3ffaf6e072c1b9cc2e (diff)
Fix syntax error in generated opcodes
Diffstat (limited to 'parse-opcodes')
-rwxr-xr-xparse-opcodes4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse-opcodes b/parse-opcodes
index 91801c2..9d43f1d 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -152,7 +152,7 @@ def str_arg(arg0,name,match,arguments):
return binary(yank(match,start,len),len)
def str_inst(name,arguments):
- ret = name.upper().replace('-RV32','') + ' '
+ ret = name.replace('.rv32','').upper() + ' '
if 'imm12hi' in arguments and 'imm12lo' in arguments:
arguments.remove('imm12hi')
arguments.remove('imm12lo')
@@ -571,7 +571,7 @@ def make_latex_table():
print_insts('lui', 'auipc')
print_insts('jal', 'jalr', 'beq', 'bne', 'blt', 'bge', 'bltu', 'bgeu')
print_insts('lb', 'lh', 'lw', 'lbu', 'lhu', 'sb', 'sh', 'sw')
- print_insts('addi', 'slti', 'sltiu', 'xori', 'ori', 'andi', 'slli-rv32', 'srli-rv32', 'srai-rv32')
+ print_insts('addi', 'slti', 'sltiu', 'xori', 'ori', 'andi', 'slli.rv32', 'srli.rv32', 'srai.rv32')
print_insts('add', 'sub', 'sll', 'slt', 'sltu', 'xor', 'srl', 'sra', 'or', 'and')
print_insts('fence', 'fence.i')
print_insts('scall', 'sbreak', 'rdcycle', 'rdtime', 'rdinstret')