add option to stop writing isa all.py in pseudocode directory
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Mar 2021 15:44:39 +0000 (15:44 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Mar 2021 15:44:39 +0000 (15:44 +0000)
src/soc/decoder/pseudo/pywriter.py

index ea69776bd8ad7d3998c022af69c04a4e0424022d..a274dccb51491ddcaf7284fef7b7b1272b33622f 100644 (file)
@@ -136,7 +136,12 @@ if __name__ == '__main__':
         sources = isa.page.keys()
     else:
         sources = sys.argv[1:]
+    write_isa_class = True
+    if sources[0] == "noall": # don't rewrite all.py
+        write_isa_class = False
+        sources.pop(0)
     for source in sources:
         isa.write_pysource(source)
         isa.patch_if_needed(source)
-    isa.write_isa_class()
+    if write_isa_class:
+        isa.write_isa_class()