aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tobias.klauser@gmail.com>2018-09-20 20:22:10 +0200
committerAndrew Waterman <aswaterman@gmail.com>2018-09-20 11:22:10 -0700
commit536b7c37c3ac9a98507a27d1ba4a1a1b256dc9fb (patch)
treeb8bcc8aaf9f0f827d8594b59dc6cfdac10294bee
parente24529d0a7991be429dd317d6db1d3581bee3338 (diff)
downloadriscv-opcodes-536b7c37c3ac9a98507a27d1ba4a1a1b256dc9fb.zip
riscv-opcodes-536b7c37c3ac9a98507a27d1ba4a1a1b256dc9fb.tar.gz
riscv-opcodes-536b7c37c3ac9a98507a27d1ba4a1a1b256dc9fb.tar.bz2
Add header following Go convention for generated code (#21)
Go has a convention for generated code comments (https://golang.org/s/generatedcode), i.e. they must match the regex ^// Code generated .* DO NOT EDIT\.$ Adjust the generated header to follow this convention.
-rwxr-xr-xparse-opcodes2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-opcodes b/parse-opcodes
index 69931aa..e4fc3b1 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -865,7 +865,7 @@ def print_go_insn(name):
print '\t\treturn &inst{0x%x, 0x%x, 0x%x, %d, 0x%x}, true' % (opcode, funct3, rs2, signed(csr, 12), funct7)
def make_go():
- print '// Automatically generated by parse-opcodes'
+ print '// Code generated by parse-opcodes; DO NOT EDIT.'
print
print 'package riscv'
print