syscalls: support ppc/ppc64 ecall generators
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 21 Sep 2023 21:31:11 +0000 (00:31 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 26 Sep 2023 21:08:32 +0000 (22:08 +0100)
src/openpower/syscalls/__main__.py

index 35bf6692e36ff6fe34483a9fc631e6ea463ab683..3fadc90a0858b2a1cce44cf10498e601d5038941 100644 (file)
@@ -181,6 +181,8 @@ class ECallGenerator:
     def __call__(self, guest, host):
         conventions = {
             "riscv64": (17, 10, 11, 12, 13, 14, 15),
+            "ppc": (0, 3, 4, 5, 6, 7, 8),
+            "ppc64": (0, 3, 4, 5, 6, 7, 8),
         }
 
         limit = -1
@@ -260,7 +262,7 @@ def main():
     ecall_parser = main_subparsers.add_parser("ecall")
     ecall_parser.add_argument("guest",
         help="guest architecture",
-        choices=("riscv64",))
+        choices=("riscv64", "ppc", "ppc64"))
     ecall_parser.add_argument("host",
         help="amd64 architecture",
         choices=("amd64",))