diff options
author | Valery Ushakov <uwe@stderr.spb.ru> | 2017-08-28 20:02:27 +0300 |
---|---|---|
committer | Valery Ushakov <uwe@stderr.spb.ru> | 2017-08-28 20:02:27 +0300 |
commit | 2c1c5550090353a79298acaab260482d239afb54 (patch) | |
tree | e98be413caba05ae1c3f5d8302b6767abb76b90c | |
parent | f6a76de4c68187d3916866f73e58afce6998111b (diff) |
On PowerPC tell the JIT compiler it's not Plan9 ABI and it needs to
explicitly clear %r0.
-rw-r--r-- | emu/NetBSD/emu | 3 | ||||
-rw-r--r-- | emu/NetBSD/emu-g | 4 |
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;} |