Commit cf6c1b169c62e6aba5a384a2a118aef12e9608e6

Authored by j_mayer
1 parent bedb69ea

Rules needed to compile linux user-mode alpha target.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2607 c046a42c-6fe2-441c-8c8c-71466251a162
Makefile
@@ -151,6 +151,7 @@ tarbin: @@ -151,6 +151,7 @@ tarbin:
151 $(bindir)/qemu-ppc \ 151 $(bindir)/qemu-ppc \
152 $(bindir)/qemu-mips \ 152 $(bindir)/qemu-mips \
153 $(bindir)/qemu-mipsel \ 153 $(bindir)/qemu-mipsel \
  154 + $(bindir)/qemu-alpha \
154 $(bindir)/qemu-img \ 155 $(bindir)/qemu-img \
155 $(datadir)/bios.bin \ 156 $(datadir)/bios.bin \
156 $(datadir)/vgabios.bin \ 157 $(datadir)/vgabios.bin \
Makefile.target
@@ -304,6 +304,10 @@ ifeq ($(TARGET_BASE_ARCH), m68k) @@ -304,6 +304,10 @@ ifeq ($(TARGET_BASE_ARCH), m68k)
304 LIBOBJS+= helper.o 304 LIBOBJS+= helper.o
305 endif 305 endif
306 306
  307 +ifeq ($(TARGET_BASE_ARCH), alpha)
  308 +LIBOBJS+= op_helper.o helper.o alpha_palcode.o
  309 +endif
  310 +
307 # NOTE: the disassembler code is only needed for debugging 311 # NOTE: the disassembler code is only needed for debugging
308 LIBOBJS+=disas.o 312 LIBOBJS+=disas.o
309 ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386) 313 ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
@@ -605,6 +609,11 @@ sh7750_regnames.o: sh7750_regnames.c sh7750_regnames.h sh7750_regs.h @@ -605,6 +609,11 @@ sh7750_regnames.o: sh7750_regnames.c sh7750_regnames.h sh7750_regs.h
605 tc58128.o: tc58128.c 609 tc58128.o: tc58128.c
606 endif 610 endif
607 611
  612 +ifeq ($(TARGET_BASE_ARCH), alpha)
  613 +op.o: op.c op_template.h op_mem.h
  614 +op_helper.o: op_helper_mem.h
  615 +endif
  616 +
608 $(OBJS) $(LIBOBJS) $(VL_OBJS): config.h ../config-host.h 617 $(OBJS) $(LIBOBJS) $(VL_OBJS): config.h ../config-host.h
609 618
610 %.o: %.c 619 %.o: %.c
configure
@@ -437,7 +437,7 @@ if test -z "$target_list" ; then @@ -437,7 +437,7 @@ if test -z "$target_list" ; then
437 fi 437 fi
438 # the following are Linux specific 438 # the following are Linux specific
439 if [ "$linux_user" = "yes" ] ; then 439 if [ "$linux_user" = "yes" ] ; then
440 - target_list="i386-linux-user arm-linux-user armeb-linux-user sparc-linux-user ppc-linux-user mips-linux-user mipsel-linux-user m68k-linux-user $target_list" 440 + target_list="i386-linux-user arm-linux-user armeb-linux-user sparc-linux-user ppc-linux-user mips-linux-user mipsel-linux-user m68k-linux-user alpha-linux-user $target_list"
441 fi 441 fi
442 # the following are Darwin specific 442 # the following are Darwin specific
443 if [ "$darwin_user" = "yes" ] ; then 443 if [ "$darwin_user" = "yes" ] ; then
@@ -943,6 +943,10 @@ elif test "$target_cpu" = "m68k" ; then @@ -943,6 +943,10 @@ elif test "$target_cpu" = "m68k" ; then
943 echo "#define TARGET_ARCH \"m68k\"" >> $config_h 943 echo "#define TARGET_ARCH \"m68k\"" >> $config_h
944 echo "#define TARGET_M68K 1" >> $config_h 944 echo "#define TARGET_M68K 1" >> $config_h
945 bflt="yes" 945 bflt="yes"
  946 +elif test "$target_cpu" = "alpha" ; then
  947 + echo "TARGET_ARCH=alpha" >> $config_mak
  948 + echo "#define TARGET_ARCH \"alpha\"" >> $config_h
  949 + echo "#define TARGET_ALPHA 1" >> $config_h
946 else 950 else
947 echo "Unsupported target CPU" 951 echo "Unsupported target CPU"
948 exit 1 952 exit 1