Fixed the SEGFAULT bug with Loongcc and Loongson3.
authorXianyi Zhang <xianyi@iscas.ac.cn>
Thu, 11 Apr 2013 07:33:43 +0000 (15:33 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Thu, 11 Apr 2013 07:33:43 +0000 (15:33 +0800)
Makefile.system
common_mips64.h

index 5f8c251..1b8c9b4 100644 (file)
@@ -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
index 8534837..1bee694 100644 (file)
@@ -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