helper for one-source-of-truth for insn argument list for ISACaller and parser
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 7 Nov 2023 04:43:13 +0000 (20:43 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 14 Nov 2023 23:06:49 +0000 (15:06 -0800)
src/openpower/decoder/isa/caller.py

index 67e0deba85b5ba7f8e8d26dccb83cdbbe36b37cd..cd8d419034f3fa1e08819bd09e3f0d5bc29c7840 100644 (file)
@@ -144,6 +144,12 @@ def create_args(reglist, extra=None):
     return retval
 
 
+def create_full_args(*, read_regs, special_regs, uninit_regs, write_regs,
+                     extra=None):
+    return create_args([
+        *read_regs, *uninit_regs, *write_regs, *special_regs], extra=extra)
+
+
 class GPR(dict):
     def __init__(self, decoder, isacaller, svstate, regfile):
         dict.__init__(self)