From: Jacob Lifshay Date: Tue, 7 Nov 2023 04:43:13 +0000 (-0800) Subject: helper for one-source-of-truth for insn argument list for ISACaller and parser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce2c035ccbb2e86dba6023e1a86233b99eaede9a;p=openpower-isa.git helper for one-source-of-truth for insn argument list for ISACaller and parser --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 67e0deba..cd8d4190 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -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)