From 2065f3f7e0601693bc3944c9e5afc12a8426d753 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 24 Mar 2021 15:44:39 +0000 Subject: [PATCH] add option to stop writing isa all.py in pseudocode directory --- src/soc/decoder/pseudo/pywriter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() -- 2.30.2