Browse Source

Fixed the SEGFAULT bug with Loongcc and Loongson3.

tags/v0.2.7
Xianyi Zhang 12 years ago
parent
commit
6958c1a1aa
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      Makefile.system
  2. +2
    -2
      common_mips64.h

+ 4
- 4
Makefile.system 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


+ 2
- 2
common_mips64.h 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


Loading…
Cancel
Save