summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Ushakov <uwe@stderr.spb.ru>2017-08-28 20:02:27 +0300
committerValery Ushakov <uwe@stderr.spb.ru>2017-08-28 20:02:27 +0300
commit2c1c5550090353a79298acaab260482d239afb54 (patch)
treee98be413caba05ae1c3f5d8302b6767abb76b90c
parentf6a76de4c68187d3916866f73e58afce6998111b (diff)
On PowerPC tell the JIT compiler it's not Plan9 ABI and it needs to
explicitly clear %r0.
-rw-r--r--emu/NetBSD/emu3
-rw-r--r--emu/NetBSD/emu-g4
2 files changed, 7 insertions, 0 deletions
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;}