diff options
author | Tobias Klauser <tobias.klauser@gmail.com> | 2018-09-20 20:22:10 +0200 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2018-09-20 11:22:10 -0700 |
commit | 536b7c37c3ac9a98507a27d1ba4a1a1b256dc9fb (patch) | |
tree | b8bcc8aaf9f0f827d8594b59dc6cfdac10294bee /parse-opcodes | |
parent | e24529d0a7991be429dd317d6db1d3581bee3338 (diff) | |
download | riscv-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.
Diffstat (limited to 'parse-opcodes')
-rwxr-xr-x | parse-opcodes | 2 |
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 |