On 31 October 2017 at 16:18, John Reiser wrote:
> On real Linux on PowerPC64, a system call trashes registers {r0, r4-r12,
> ctr};
> qemu-ppc64 preserves them. [Both preserve: r13-r31, r1 (sp), r2 (TOC), r3
> (set to
> return value), lr (link register).] Looking at the code in
> qemu/linux-user/
I was surprised that my user-mode applications ran successfully under
qemu-ppc64 2.10.1
running on Linux on x86_64, but crashed when run directly under Linux on 64-bit
PowerPC.
Investigation showed that qemu-ppc64 does not emulate system calls faithfully.
On real Linux on PowerPC64, a system ca