[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sun Sep 17 22:47:56 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=982
--- Comment #36 from Dmitry Selyutin <ghostmansd at gmail.com> ---
All in all, this task and its future depends on how far you want to go.
If you want a proper ABI emulation for another architecture -- you have to
invent something like QEMU user mode. Or, better, just directly take it.
If we need some fixed number of system calls, or for some reasons want to pass
these as is to host OS on our own without intermediate participants like qemu
-- that's another story. But that another story has to have some bits depending
on which system calls you need: either intermediate copies, or directly shared
memory, plus parts of MM, plus parts of fd tree, etc. etc. Basically you'll end
up inventing a toy OS inside the interpreter.
>From comment 2 I assumed the second. That's an interesting thing to try
checking out, though I must confess, in my opinion, the budget hardly covers
even this experiment. The best I can suggest is preparing an infrastructure
which makes this possible and demonstrating some really basic bits: say
wrapping some exit(2) variant and maybe write(2) on STDOUT_FILENO and perhaps
stuff like sleep and OS detection via say uname(2).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list