Subject: [PATCH] fix ppc build failures --- mono/mini/mini-gc.c | 2 ++ mono/mini/mini-ppc.h | 1 + 2 files changed, 3 insertions(+) diff --git a/mono/mini/mini-gc.c b/mono/mini/mini-gc.c index 5589d99..d8a0a8e 100644 --- a/mono/mini/mini-gc.c +++ b/mono/mini/mini-gc.c @@ -441,6 +441,8 @@ static int callee_saved_regs [] = { ARMREG_V1, ARMREG_V2, ARMREG_V3, ARMREG_V4, static int callee_saved_regs [] = { }; #elif defined(TARGET_S390X) static int callee_saved_regs [] = { s390_r6, s390_r7, s390_r8, s390_r9, s390_r10, s390_r11, s390_r12, s390_r13, s390_r14 }; +#elif defined(TARGET_POWERPC) +static int callee_saved_regs [] = { ppc_r6, ppc_r7, ppc_r8, ppc_r9, ppc_r10, ppc_r11, ppc_r12, ppc_r13, ppc_r14 }; #endif static guint32 diff --git a/mono/mini/mini-ppc.h b/mono/mini/mini-ppc.h index 13b6adb..60ac075 100644 --- a/mono/mini/mini-ppc.h +++ b/mono/mini/mini-ppc.h @@ -96,6 +96,7 @@ typedef struct MonoCompileArch { #define MONO_ARCH_EMULATE_FREM 1 #define MONO_ARCH_BIGMUL_INTRINS 1 #define MONO_ARCH_HAVE_ATOMIC_CAS 1 +#define MONO_ARCH_GC_MAPS_SUPPORTED 1 /* Parameters used by the register allocator */ #define MONO_ARCH_CALLEE_REGS ((0xff << ppc_r3) | (1 << ppc_r11) | (1 << ppc_r12)) -- 2.0.0