From: Dmitry Selyutin Date: Thu, 21 Sep 2023 19:12:52 +0000 (+0300) Subject: syscalls: reorder generic entries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=014942e716f5f28affc99fba0314d5660578504f;p=openpower-isa.git syscalls: reorder generic entries --- diff --git a/src/openpower/syscalls/__main__.py b/src/openpower/syscalls/__main__.py index eefa2304..48bd5e2c 100644 --- a/src/openpower/syscalls/__main__.py +++ b/src/openpower/syscalls/__main__.py @@ -65,15 +65,15 @@ def collect_sysnums(tree): table[abi][number] = (name, []) table[abi][name] = number - if entry32 is not None: - table["arch32"][number][1].append(entry32) + if entry is not None: + table["arch32"][number][1].append(entry) + table["arch64"][number][1].append(entry) if entry64 is not None: table["arch64"][number][1].append(entry64) + if entry32 is not None: + table["arch32"][number][1].append(entry32) if compat is not None: table["arch64"][number][1].append(compat) - if entry is not None: - table["arch32"][number][1].append(entry) - table["arch64"][number][1].append(entry) for abi in dict(table): if not table[abi][number][1]: