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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Sep 21 00:27:52 BST 2023


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

--- Comment #68 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #67)
> class ISACaller(...):
>     ...
>     def call(self, name):
>         ...
>         asmop = yield from self.get_assembly_name()
>         log("call", ins_name, asmop)
> 
>         if not self.is_svp64_mode and asmop == "sc" and self.syscall_emulation:
>             yield from self.emulate_syscall()
>             self.update_pc_next()
>             return
>         ...

    def emulate_syscall(self):
        syscall_num = self.gpr(0)
        if syscall_num in self.syscall_table:
            yield from self.syscall_table[syscall_num](self)
        else:
            self.cr.crl[0][CRFields.SO] = 1
            self.gpr[3] = ENOSYS

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


More information about the libre-soc-bugs mailing list