From 97e1356687ec5a7e13f1a7dce5cc8567df267a4c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 22 Sep 2023 00:31:11 +0300 Subject: [PATCH] syscalls: support ppc/ppc64 ecall generators --- src/openpower/syscalls/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/syscalls/__main__.py b/src/openpower/syscalls/__main__.py index 35bf6692..3fadc90a 100644 --- a/src/openpower/syscalls/__main__.py +++ b/src/openpower/syscalls/__main__.py @@ -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",)) -- 2.30.2