From e06f0407cb9d9cf9b0e7b3eaad128e5121a7f6d2 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 20 Oct 2009 09:06:52 -0600 Subject: [PATCH] fix powerpc bootimage build (second try) --- src/posix.cpp | 2 ++ src/powerpc.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/posix.cpp b/src/posix.cpp index a5ea1a63dd..6f83484bd1 100644 --- a/src/posix.cpp +++ b/src/posix.cpp @@ -575,6 +575,8 @@ class MySystem: public System { if (p == MAP_FAILED) { return 0; } else { +// fprintf(stderr, "executable from %p to %p\n", p, +// static_cast(p) + sizeInBytes); return static_cast(p); } } diff --git a/src/powerpc.cpp b/src/powerpc.cpp index 3f9c8e79af..5b05c96c9f 100644 --- a/src/powerpc.cpp +++ b/src/powerpc.cpp @@ -1306,7 +1306,7 @@ xorC(Context* c, unsigned size, Assembler::Constant* a, } void -moveAR2(Context* c, unsigned srcSize, Assembler::Address* src, +moveAR2(Context* c, unsigned srcSize UNUSED, Assembler::Address* src, unsigned dstSize, Assembler::Register* dst, unsigned promiseOffset) { assert(c, srcSize == 4 and dstSize == 4); @@ -1908,7 +1908,7 @@ class MyArchitecture: public Assembler::Architecture { } virtual uintptr_t maximumImmediateJump() { - return 0x3FFFFFF; + return 0x1FFFFFF; } virtual bool reserved(int register_) {