diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-01 11:16:48 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-01 11:16:48 +0000 |
commit | fbe4f65b28aa24534afe7669eb3087c1b5657c08 (patch) | |
tree | 853ccf390d4bb58082d1c92a097758057e2c63e5 /Makefile.target | |
parent | 678dde1323f864a46730c303223b40c4571c23bb (diff) | |
download | hqemu-fbe4f65b28aa24534afe7669eb3087c1b5657c08.zip hqemu-fbe4f65b28aa24534afe7669eb3087c1b5657c08.tar.gz |
MIPS64 configurations.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2564 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/Makefile.target b/Makefile.target index b526564..3d221ba 100644 --- a/Makefile.target +++ b/Makefile.target @@ -4,6 +4,9 @@ TARGET_BASE_ARCH:=$(TARGET_ARCH) ifeq ($(TARGET_ARCH), x86_64) TARGET_BASE_ARCH:=i386 endif +ifeq ($(TARGET_ARCH), mips64) +TARGET_BASE_ARCH:=mips +endif ifeq ($(TARGET_ARCH), ppc64) TARGET_BASE_ARCH:=ppc endif @@ -44,6 +47,11 @@ ifeq ($(TARGET_ARCH),mips) TARGET_ARCH2=mipsel endif endif +ifeq ($(TARGET_ARCH),mips64) + ifneq ($(TARGET_WORDS_BIGENDIAN),yes) + TARGET_ARCH2=mips64el + endif +endif QEMU_USER=qemu-$(TARGET_ARCH2) # system emulator name ifdef CONFIG_SOFTMMU @@ -170,7 +178,19 @@ BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld endif ifeq ($(ARCH),mips) +ifeq ($(WORDS_BIGENDIAN),yes) +BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld +else +BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld +endif +endif + +ifeq ($(ARCH),mips64) +ifeq ($(WORDS_BIGENDIAN),yes) BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld +else +BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld +endif endif ifeq ($(CONFIG_DARWIN),yes) @@ -258,7 +278,7 @@ ifeq ($(TARGET_BASE_ARCH), ppc) LIBOBJS+= op_helper.o helper.o endif -ifeq ($(TARGET_ARCH), mips) +ifeq ($(TARGET_BASE_ARCH), mips) LIBOBJS+= op_helper.o helper.o endif @@ -295,7 +315,7 @@ endif ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc) LIBOBJS+=ppc-dis.o endif -ifeq ($(findstring mips, $(TARGET_ARCH) $(ARCH)),mips) +ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips) LIBOBJS+=mips-dis.o endif ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc) @@ -387,7 +407,7 @@ VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o VL_OBJS+= grackle_pci.o prep_pci.o unin_pci.o CPPFLAGS += -DHAS_AUDIO endif -ifeq ($(TARGET_ARCH), mips) +ifeq ($(TARGET_BASE_ARCH), mips) VL_OBJS+= mips_r4k.o mips_malta.o mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o VL_OBJS+= ide.o gt64xxx.o pckbd.o ps2.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o VL_OBJS+= piix_pci.o parallel.o mixeng.o cirrus_vga.o $(SOUND_HW) $(AUDIODRV) @@ -554,10 +574,11 @@ op_helper.o: op_helper_mem.h translate.o: translate.c translate_init.c endif -ifeq ($(TARGET_ARCH), mips) -op.o: op.c op_template.c fop_template.c op_mem.c -op_helper.o: op_helper_mem.c -translate.o: translate.c translate_init.c +ifeq ($(TARGET_BASE_ARCH), mips) +helper.o: cpu.h exec-all.h +op.o: op_template.c fop_template.c op_mem.c exec.h +op_helper.o: op_helper_mem.c exec.h softmmu_template.h +translate.o: translate_init.c exec-all.h disas.h endif loader.o: loader.c elf_ops.h |