From 5da0f8b0fae6a09e390effb02e138338fbcade59 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Wed, 21 Apr 2021 20:41:16 +0200 Subject: [PATCH] fixed failure to launch with missing --instruction-sets flag --- riscemu/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/riscemu/__main__.py b/riscemu/__main__.py index bd8d8c8..6473ca9 100644 --- a/riscemu/__main__.py +++ b/riscemu/__main__.py @@ -67,6 +67,10 @@ if __name__ == '__main__': scall_input=not args.syscall_opts['disable_input'] ) + + if not hasattr(args, 'ins'): + setattr(args, 'ins', {k: True for k in all_ins_names}) + FMT_PRINT = FMT_BOLD + FMT_MAGENTA # parse required instruction sets