[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Sep 5 11:53:31 BST 2023


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

--- Comment #1 from Andrey Miroshnikov <andrey at technepisteme.xyz> ---
Reassigning this bug to me (with Shriya cc'd so she can study along).

>From my understanding of the task, the actual work would require:

- In ISACaller, parse the 'sc' (system call) PowerISA instruction and extract
the system call number argument.

- Import relevant library into Python which allows to make system calls.

- Look up PowerISA ABI, to see which system call arguments correspond to
open()/read)()/write() (the system calls chosen for the scope of this task).

- Extend the ISACaller (with if-elif-else type of block) which will make the
relevant system call depending on the 'sc' instruction argument.

The hardest part of the task seems to me to be understanding where to modify
the ISACaller simulator, so I'll begin by making sure I can run example
programs with it (and make a modified binary which includes a system call
instruction).

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


More information about the libre-soc-bugs mailing list