From: Luke Kenneth Casson Leighton Date: Wed, 24 Mar 2021 15:44:39 +0000 (+0000) Subject: add option to stop writing isa all.py in pseudocode directory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2065f3f7e0601693bc3944c9e5afc12a8426d753;p=soc.git add option to stop writing isa all.py in pseudocode directory --- diff --git a/src/soc/decoder/pseudo/pywriter.py b/src/soc/decoder/pseudo/pywriter.py index ea69776b..a274dccb 100644 --- a/src/soc/decoder/pseudo/pywriter.py +++ b/src/soc/decoder/pseudo/pywriter.py @@ -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()