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>
Tue, 26 Sep 2023 21:08:32 +0000 (22:08 +0100)
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"]