Fixed the SEGFAULT bug with Loongcc and Loongson3.

This commit is contained in:
Xianyi Zhang 2013-04-11 15:33:43 +08:00
parent d692ee07f7
commit 6958c1a1aa
2 changed files with 6 additions and 6 deletions

View 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

View 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