aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-05-02 16:16:28 -0700
committerAndrew Waterman <andrew@sifive.com>2022-05-02 16:16:28 -0700
commit6176fb4ce8899084901d6ff80420d8895cd5690a (patch)
treec435660a111662ff09587afeddbc1281ae894775
parent9c1570b8c456f91a3f579052ef8eccee1466d46e (diff)
downloadriscv-opcodes-6176fb4ce8899084901d6ff80420d8895cd5690a.zip
riscv-opcodes-6176fb4ce8899084901d6ff80420d8895cd5690a.tar.gz
riscv-opcodes-6176fb4ce8899084901d6ff80420d8895cd5690a.tar.bz2
Remove blank lines before #endif in encoding.out.h
-rwxr-xr-xparse.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/parse.py b/parse.py
index 81e9352..11fd1ba 100755
--- a/parse.py
+++ b/parse.py
@@ -829,17 +829,13 @@ def make_c(instr_dict):
#define RISCV_ENCODING_H
{mask_match_str}
{csr_names_str}
-{causes_str}
-#endif
+{causes_str}#endif
#ifdef DECLARE_INSN
-{declare_insn_str}
-#endif
+{declare_insn_str}#endif
#ifdef DECLARE_CSR
-{declare_csr_str}
-#endif
+{declare_csr_str}#endif
#ifdef DECLARE_CAUSE
-{declare_cause_str}
-#endif
+{declare_cause_str}#endif
''')
enc_file.close()