aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--encoding.h2
-rwxr-xr-xparse.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/encoding.h b/encoding.h
index 8628e8c..abb5ef8 100644
--- a/encoding.h
+++ b/encoding.h
@@ -1,5 +1,3 @@
-/* SPDX-License-Identifier: BSD-3-Clause-Clear */
-
#ifndef RISCV_CSR_ENCODING_H
#define RISCV_CSR_ENCODING_H
diff --git a/parse.py b/parse.py
index 2de8fbc..c389eb8 100755
--- a/parse.py
+++ b/parse.py
@@ -823,11 +823,13 @@ def make_c(instr_dict):
commit = os.popen('git log -1 --format="format:%h"').read()
enc_file = open('encoding.out.h','w')
- enc_file.write(f'''
+ enc_file.write(f'''/* SPDX-License-Identifier: BSD-3-Clause-Clear */
+
/*
-* This file is auto-generated by running 'make' in
-* https://github.com/riscv/riscv-opcodes ({commit})
-*/
+ * This file is auto-generated by running 'make' in
+ * https://github.com/riscv/riscv-opcodes ({commit})
+ */
+
{enc_header}
/* Automatically generated by parse_opcodes. */
#ifndef RISCV_ENCODING_H