From 1221629a011acd241ec5f2cd8de88ed67481e13f Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 6 Nov 2023 20:43:13 -0800 Subject: [PATCH] helper for one-source-of-truth for insn argument list for ISACaller and parser --- src/openpower/decoder/isa/caller.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.30.2