aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-05 20:46:02 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-05 20:46:02 +0000
commitcf6c1b169c62e6aba5a384a2a118aef12e9608e6 (patch)
treedfc5f459d738c8c2c878c366365b479901393ede
parentbedb69ea0453a65a1c5a7b159ab485c542ecd15c (diff)
downloadqemu-cf6c1b169c62e6aba5a384a2a118aef12e9608e6.zip
qemu-cf6c1b169c62e6aba5a384a2a118aef12e9608e6.tar.gz
qemu-cf6c1b169c62e6aba5a384a2a118aef12e9608e6.tar.bz2
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
-rw-r--r--Makefile1
-rw-r--r--Makefile.target9
-rwxr-xr-xconfigure6
3 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 60e3ec1..9249c7f 100644
--- a/Makefile
+++ b/Makefile
@@ -151,6 +151,7 @@ tarbin:
$(bindir)/qemu-ppc \
$(bindir)/qemu-mips \
$(bindir)/qemu-mipsel \
+ $(bindir)/qemu-alpha \
$(bindir)/qemu-img \
$(datadir)/bios.bin \
$(datadir)/vgabios.bin \
diff --git a/Makefile.target b/Makefile.target
index 323961a..2742991 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -304,6 +304,10 @@ ifeq ($(TARGET_BASE_ARCH), m68k)
LIBOBJS+= helper.o
endif
+ifeq ($(TARGET_BASE_ARCH), alpha)
+LIBOBJS+= op_helper.o helper.o alpha_palcode.o
+endif
+
# NOTE: the disassembler code is only needed for debugging
LIBOBJS+=disas.o
ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
@@ -605,6 +609,11 @@ sh7750_regnames.o: sh7750_regnames.c sh7750_regnames.h sh7750_regs.h
tc58128.o: tc58128.c
endif
+ifeq ($(TARGET_BASE_ARCH), alpha)
+op.o: op.c op_template.h op_mem.h
+op_helper.o: op_helper_mem.h
+endif
+
$(OBJS) $(LIBOBJS) $(VL_OBJS): config.h ../config-host.h
%.o: %.c
diff --git a/configure b/configure
index a7761ca..f8879df 100755
--- a/configure
+++ b/configure
@@ -437,7 +437,7 @@ if test -z "$target_list" ; then
fi
# the following are Linux specific
if [ "$linux_user" = "yes" ] ; then
- 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"
+ 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"
fi
# the following are Darwin specific
if [ "$darwin_user" = "yes" ] ; then
@@ -943,6 +943,10 @@ elif test "$target_cpu" = "m68k" ; then
echo "#define TARGET_ARCH \"m68k\"" >> $config_h
echo "#define TARGET_M68K 1" >> $config_h
bflt="yes"
+elif test "$target_cpu" = "alpha" ; then
+ echo "TARGET_ARCH=alpha" >> $config_mak
+ echo "#define TARGET_ARCH \"alpha\"" >> $config_h
+ echo "#define TARGET_ALPHA 1" >> $config_h
else
echo "Unsupported target CPU"
exit 1