[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Mon Sep 18 20:34:34 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=982
--- Comment #54 from Andrey Miroshnikov <andrey at technepisteme.xyz> ---
(In reply to Dmitry Selyutin from comment #52)
> Folks, I've played a bit more with these shiny system call tables, and added
> a simple class which can be used as a basis for ppc/ppc64/i386/amd64
> conversion:
> ...
> This works as if somebody arrived to us with system calls 20 and 207 on PPC
> and attempted to wrap their execution to amd64 (which luckily is the
> platform I use). Basically it checks guest syscall table by identifier,
> finds the entry, then finds the backward mapping in host syscall table, then
> briefly inspects the arguments count (though we might even attempt to
> validate these). I also added a wrapper to call them by names, not just
> identifiers. The output is:
>
This is brilliant! Thanks for doing this. During learning I was struggling how
to use ctypes, this is so much more capable!
I'll give this a spin later.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list