From: Dmitry Selyutin Date: Mon, 18 Sep 2023 19:38:43 +0000 (+0300) Subject: syscalls: refactor dispatcher call arguments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad27091ea159b284c1bda2b089f670b83e5681a7;p=openpower-isa.git syscalls: refactor dispatcher call arguments --- diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index 28a05cc7..abb06db1 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -55,9 +55,9 @@ class Dispatcher: return super().__init__() def __getattr__(self, identifier): - return functools.partial(self.__call__, identifier=identifier) + return functools.partial(self.__call__, identifier) - def __call__(self, *arguments, identifier=None): + def __call__(self, identifier, *arguments): if isinstance(identifier, int): identifier = str(identifier) if identifier not in self.__guest: