Changeset b696cbf in mainline


Ignore:
Timestamp:
2013-03-15T20:53:30Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ddfd158
Parents:
606f6a1
Message:

Generate code exactly for the CPU used on the machine.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/Makefile.inc

    r606f6a1 rb696cbf  
    2929BFD_ARCH = mips
    3030BITS = 32
    31 EXTRA_CFLAGS = -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3 -mabi=32
     31EXTRA_CFLAGS = -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=32
    3232
    3333ifeq ($(MACHINE),msim)
     
    3535        BFD_OUTPUT = binary
    3636        ENDIANESS = LE
     37        EXTRA_CFLAGS += -march=r4000
    3738endif
    3839ifeq ($(MACHINE),lmalta)
     
    4041        BFD_OUTPUT = elf32-tradlittlemips
    4142        ENDIANESS = LE
     43        EXTRA_CFLAGS += -march=4kc
    4244endif
    4345ifeq ($(MACHINE),bmalta)
     
    4547        BFD_OUTPUT = elf32-tradbigmips
    4648        ENDIANESS = BE
     49        EXTRA_CFLAGS += -march=4kc
    4750endif
    4851
  • kernel/arch/mips32/Makefile.inc

    r606f6a1 rb696cbf  
    2929BFD_ARCH = mips
    3030BFD = binary
    31 GCC_CFLAGS += -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3 -mabi=32
     31GCC_CFLAGS += -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=32
    3232
    3333BITS = 32
     
    3939        BFD_NAME = elf32-tradlittlemips
    4040        ENDIANESS = LE
     41        GCC_CFLAGS += -march=r4000
    4142endif
    4243ifeq ($(MACHINE),bmalta)
    4344        BFD_NAME = elf32-tradbigmips
    4445        ENDIANESS = BE
    45         GCC_CFLAGS += -D__BE__
     46        GCC_CFLAGS += -D__BE__ -march=4kc
    4647endif
    4748ifeq ($(MACHINE),lmalta)
    4849        BFD_NAME = elf32-tradlittlemips
    4950        ENDIANESS = LE
     51        GCC_CFLAGS += -march=4kc
    5052endif
    5153
  • uspace/lib/c/arch/mips32/Makefile.common

    r606f6a1 rb696cbf  
    2727#
    2828
    29 GCC_CFLAGS += -msoft-float -mips3 -mabi=32
     29GCC_CFLAGS += -msoft-float -mabi=32
    3030BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a
    3131
     
    3434BFD_ARCH = mips
    3535BFD_NAME = elf32-tradlittlemips
     36
     37ifeq ($(MACHINE),msim)
     38        GCC_CFLAGS += -march=r4000
     39endif
     40
     41ifeq ($(MACHINE),lmalta)
     42        GCC_CFLAGS += -march=4kc
     43endif
     44
  • uspace/lib/c/arch/mips32eb/Makefile.common

    r606f6a1 rb696cbf  
    2727#
    2828
    29 GCC_CFLAGS += -msoft-float -mips3 -mabi=32
     29GCC_CFLAGS += -msoft-float -mabi=32
    3030BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a
    3131
     
    3434BFD_ARCH = mips
    3535BFD_NAME = elf32-tradbigmips
     36
     37ifeq ($(MACHINE),bmalta)
     38        GCC_CFLAGS += -march=4kc
     39endif
     40
Note: See TracChangeset for help on using the changeset viewer.