Rev 329 | Rev 332 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 329 | Rev 330 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | endif |
26 | endif |
27 | 27 | ||
28 | ifeq (${MACHINE},lgxemul) |
28 | ifeq (${MACHINE},lgxemul) |
29 | CFLAGS += -DHAVE_FPU -DFPU_LAZY -mips3 |
29 | CFLAGS += -DHAVE_FPU -DFPU_LAZY -mips3 |
30 | BFD = ecoff-littlemips |
30 | BFD = ecoff-littlemips |
31 | KERNEL_LOAD_ADDRESS = 0x80010000 |
31 | KERNEL_LOAD_ADDRESS = 0x80100000 |
32 | endif |
32 | endif |
33 | 33 | ||
34 | ifeq (${MACHINE},bgxemul) |
34 | ifeq (${MACHINE},bgxemul) |
35 | CFLAGS += -EB -mmemcpy -DBIG_ENDIAN -DHAVE_FPU -DFPU_LAZY -mips3 |
35 | CFLAGS += -EB -mmemcpy -DBIG_ENDIAN -DHAVE_FPU -DFPU_LAZY -mips3 |
36 | BFD = ecoff-bigmips |
36 | BFD = ecoff-bigmips |
37 | KERNEL_LOAD_ADDRESS = 0x80010000 |
37 | KERNEL_LOAD_ADDRESS = 0x80100000 |
38 | endif |
38 | endif |
39 | 39 | ||
40 | # MSIM needs lwl/swl patch & 4kc instruction patch to work |
40 | # MSIM needs lwl/swl patch & 4kc instruction patch to work |
41 | # otherwise add -mmemcpy -mips3 |
41 | # otherwise add -mmemcpy -mips3 |
42 | ifeq (${MACHINE},msim) |
42 | ifeq (${MACHINE},msim) |
43 | BFD = binary |
43 | BFD = binary |
44 | CFLAGS += -msoft-float -march=4kc |
44 | CFLAGS += -msoft-float -march=4kc |
45 | KERNEL_LOAD_ADDRESS = 0x80010000 |
45 | KERNEL_LOAD_ADDRESS = 0x80100000 |
46 | endif |
46 | endif |
47 | 47 | ||
48 | # SIMICS 4kc emulation is broken, although for instructions |
48 | # SIMICS 4kc emulation is broken, although for instructions |
49 | # that do not bother us |
49 | # that do not bother us |
50 | ifeq (${MACHINE},simics) |
50 | ifeq (${MACHINE},simics) |
51 | BFD = elf32-little |
51 | BFD = elf32-little |
52 | CFLAGS += -msoft-float -mips3 |
52 | CFLAGS += -msoft-float -mips3 |
53 | KERNEL_LOAD_ADDRESS = 0x80010000 |
53 | KERNEL_LOAD_ADDRESS = 0x80100000 |
54 | endif |
54 | endif |
55 | 55 | ||
56 | ../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in |
56 | ../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in |
57 | $(CC) $(CFLAGS) -C -DBFD=${BFD} -E -x c $< | grep -v "^\#" > $@ |
57 | $(CC) $(CFLAGS) -C -DBFD=${BFD} -E -x c $< | grep -v "^\#" > $@ |
58 | 58 |