From 2c1c5550090353a79298acaab260482d239afb54 Mon Sep 17 00:00:00 2001 From: Valery Ushakov Date: Mon, 28 Aug 2017 20:02:27 +0300 Subject: On PowerPC tell the JIT compiler it's not Plan9 ABI and it needs to explicitly clear %r0. --- emu/NetBSD/emu | 3 +++ emu/NetBSD/emu-g | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'emu') diff --git a/emu/NetBSD/emu b/emu/NetBSD/emu index 55705a2b..d89c5bc5 100644 --- a/emu/NetBSD/emu +++ b/emu/NetBSD/emu @@ -81,6 +81,9 @@ port uqid code + #ifdef __powerpc__ + int macjit = 1; /* tell compiler it's not plan9 abi */ + #endif init emuinit diff --git a/emu/NetBSD/emu-g b/emu/NetBSD/emu-g index e662b4c1..6e87297a 100644 --- a/emu/NetBSD/emu-g +++ b/emu/NetBSD/emu-g @@ -70,6 +70,10 @@ port uqid code + #ifdef __powerpc__ + int macjit = 1; /* tell compiler it's not plan9 abi */ + #endif + void setpointer(int x, int y){USED(x); USED(y);} ulong strtochan(char *s){USED(s); return ~0;} -- cgit v1.2.3