syscalls: support RISC-V architectures
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 21 Sep 2023 17:39:52 +0000 (20:39 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:20 +0000 (19:26 +0000)
src/openpower/syscalls/__init__.py

index 5888a8bce3271d7c10018521d9f8dd9b78a5e63a..c59b47a8b7c9dcda3e96890c0670f84257765ae7 100644 (file)
@@ -102,11 +102,19 @@ class Dispatcher:
             yield from sysnums["ppc"]["common"].items()
             yield from sysnums["ppc"]["64"].items()
 
+        def riscv32(sysnums):
+            yield from sysnums["generic"]["arch32"].items()
+
+        def riscv64(sysnums):
+            yield from sysnums["generic"]["arch64"].items()
+
         arch = {
             "i386": i386,
             "amd64": amd64,
             "ppc": ppc,
             "ppc64": ppc64,
+            "riscv32": riscv32,
+            "riscv64": riscv64,
         }
         sysnums = table["sysnums"]
         sysargs = table["sysargs"]