Closed RyanGlScott closed 2 months ago
FWIW, the carry flag is traditional and what's used on almost all older architectures. (Also, when the failure goes in a full register it's not necessarily -1, just nonzero. On mips you'll usually get 1.)
not immediately relevant of course
Currently,
macaw-symbolic
'slookupSyscallHandle
memory model operation is wired up to support x86-64 and AArch32, but not PowerPC. We should add support for PowerPC, following the blueprint laid out in https://github.com/GaloisInc/macaw/pull/246.Note that PPC32 and PPC64 have ever-so-slightly different calling conventions for syscalls, as seen in
man 2 syscall
:Still, these differences are minor enough that we may be able to simply put all of the PowerPC-related syscall information into a single
PPCSyscall
constructor inPPCPrimFn
and do slightly different things with this information depending on whether a PowerPC binary uses 32 bits or 64 bits.