add autogenerated do not commit comment
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 29 Jun 2020 14:02:49 +0000 (15:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 29 Jun 2020 14:02:49 +0000 (15:02 +0100)
src/soc/decoder/pseudo/pywriter.py

index bac8c4592b8709ffea6928dc19f4d8d33cb29e65..c34945ea75c132973d62fe23fa01141f35240e13 100644 (file)
@@ -111,6 +111,7 @@ class PyISAWriter(ISA):
         fname = os.path.join(isadir, "all.py")
 
         with open(fname, "w") as f:
+            f.write('# auto-generated by pywriter.py: do not edit or commit\n')
             f.write('from soc.decoder.isa.caller import ISACaller\n')
             for page in self.pages_written:
                 f.write('from soc.decoder.isa.%s import %s\n' % (page, page))