diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-08 04:54:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-08 04:54:03 +0000 |
commit | e150b8eb873fc1bdde17d8ecfd3c38168a5cdcee (patch) | |
tree | d7ff2e34a8f39dfa4ddb3537c0c7b0f190cb17a3 /lib/Target/PowerPC/PPCJITInfo.cpp | |
parent | f9bae438aa5dce85685de670702250bb930dfc49 (diff) |
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
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCJITInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp index 24a62fe230..e3858f4c89 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 |