From 6958c1a1aa4714a02a49fc2cf76ab99a1ca8db0b Mon Sep 17 00:00:00 2001 From: Xianyi Zhang Date: Thu, 11 Apr 2013 15:33:43 +0800 Subject: [PATCH] Fixed the SEGFAULT bug with Loongcc and Loongson3. --- Makefile.system | 8 ++++---- common_mips64.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile.system b/Makefile.system index 5f8c251b0..1b8c9b476 100644 --- a/Makefile.system +++ b/Makefile.system @@ -522,11 +522,11 @@ else FCOMMON_OPT += -n64 endif ifeq ($(CORE), LOONGSON3A) -FCOMMON_OPT += -loongson3 +FCOMMON_OPT += -loongson3 -static endif ifeq ($(CORE), LOONGSON3B) -FCOMMON_OPT += -loongson3 +FCOMMON_OPT += -loongson3 -static endif else @@ -552,11 +552,11 @@ else CCOMMON_OPT += -n64 endif ifeq ($(CORE), LOONGSON3A) -CCOMMON_OPT += -loongson3 +CCOMMON_OPT += -loongson3 -static endif ifeq ($(CORE), LOONGSON3B) -CCOMMON_OPT += -loongson3 +CCOMMON_OPT += -loongson3 -static endif else diff --git a/common_mips64.h b/common_mips64.h index 85348377e..1bee69407 100644 --- a/common_mips64.h +++ b/common_mips64.h @@ -255,8 +255,8 @@ REALNAME: ;\ #endif #if defined(LOONGSON3B) -#define PAGESIZE (32UL << 10) -#define FIXED_PAGESIZE (32UL << 10) +#define PAGESIZE (16UL << 10) +#define FIXED_PAGESIZE (16UL << 10) #endif #ifndef PAGESIZE