From e150b8eb873fc1bdde17d8ecfd3c38168a5cdcee Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 8 Dec 2006 04:54:03 +0000 Subject: this is an initial patch to switch the ppc64 jit over to working in PIC mode, which allows the code to be above the 2G marker. We still need to JIT emit dyld stubs to support external, weak, common, etc globals, but that will happen tomorrow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32348 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCJITInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Target/PowerPC/PPCJITInfo.cpp') diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp index 24a62fe..e3858f4 100644 --- a/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/lib/Target/PowerPC/PPCJITInfo.cpp @@ -103,6 +103,7 @@ asm( // Arguments to Compilation Callback: // r3 - our lr (address of the call instruction in stub plus 4) // r4 - stub's lr (address of instruction that called the stub plus 4) + // r5 - is64Bit - always 0. "mr r3, r0\n" "lwz r2, 208(r1)\n" // stub's frame "lwz r4, 8(r2)\n" // stub's lr @@ -164,6 +165,7 @@ asm( // Arguments to Compilation Callback: // r3 - our lr (address of the call instruction in stub plus 4) // r4 - stub's lr (address of instruction that called the stub plus 4) + // r5 - is64Bit - always 1. "mr r3, r0\n" "ld r2, 208(r1)\n" // stub's frame "ld r4, 16(r2)\n" // stub's lr -- cgit v1.1