[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 19:43:17 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=982

--- Comment #30 from Dmitry Selyutin <ghostmansd at gmail.com> ---
Yeah, since git (almost) never forgets, I've already dropped the generated
file. The link's still actual anyway (I committed a revert), so you might take
a look.

Andrey, what'd be the right way to split the activities so that I don't step on
your toes? I assume the task consists of the following steps:

1. Update dev-env-setup and openpower-isa with the proper Linux kernel clone
(easy to handle) and script invocation.
2. Extending openpower.syscalls module with the logic to lookup the PPC system
call on the host.
3. Introducing a shim wrapper around syscall, which takes several integers and
passes them SOMEHOW into the host registers. The only question I have there
relates to resources.

Say we had invoked "sc" insn in ISACaller, and we have registers around.
However, some of the registers are just pointers, some are descriptors. How'd I
copy the memory from these simulated memory cells? As for descriptors, we
obviously cannot pass them as is, and we'll kinda end up doing parts of OS job
(e.g. introducing a map of sim:host descriptors and vice versa).

I assume this needs a trap mechanism by system call identifier in simulator. Am
I right?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list