Commit d4082e95f18fdcbe4f1a80534086d4a28f651d38

Authored by j_mayer
1 parent 86f55663

New target for embedded PowerPC emulation (only system emulation, for now).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2720 c046a42c-6fe2-441c-8c8c-71466251a162
Makefile
@@ -136,6 +136,8 @@ tarbin: @@ -136,6 +136,8 @@ tarbin:
136 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \ 136 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
137 $(bindir)/qemu \ 137 $(bindir)/qemu \
138 $(bindir)/qemu-system-ppc \ 138 $(bindir)/qemu-system-ppc \
  139 + $(bindir)/qemu-system-ppc64 \
  140 + $(bindir)/qemu-system-ppcemb \
139 $(bindir)/qemu-system-sparc \ 141 $(bindir)/qemu-system-sparc \
140 $(bindir)/qemu-system-x86_64 \ 142 $(bindir)/qemu-system-x86_64 \
141 $(bindir)/qemu-system-mips \ 143 $(bindir)/qemu-system-mips \
@@ -148,6 +150,7 @@ tarbin: @@ -148,6 +150,7 @@ tarbin:
148 $(bindir)/qemu-armeb \ 150 $(bindir)/qemu-armeb \
149 $(bindir)/qemu-sparc \ 151 $(bindir)/qemu-sparc \
150 $(bindir)/qemu-ppc \ 152 $(bindir)/qemu-ppc \
  153 + $(bindir)/qemu-ppc64 \
151 $(bindir)/qemu-mips \ 154 $(bindir)/qemu-mips \
152 $(bindir)/qemu-mipsel \ 155 $(bindir)/qemu-mipsel \
153 $(bindir)/qemu-alpha \ 156 $(bindir)/qemu-alpha \
Makefile.target
@@ -10,6 +10,9 @@ endif @@ -10,6 +10,9 @@ endif
10 ifeq ($(TARGET_ARCH), ppc64) 10 ifeq ($(TARGET_ARCH), ppc64)
11 TARGET_BASE_ARCH:=ppc 11 TARGET_BASE_ARCH:=ppc
12 endif 12 endif
  13 +ifeq ($(TARGET_ARCH), ppcemb)
  14 +TARGET_BASE_ARCH:=ppc
  15 +endif
13 ifeq ($(TARGET_ARCH), sparc64) 16 ifeq ($(TARGET_ARCH), sparc64)
14 TARGET_BASE_ARCH:=sparc 17 TARGET_BASE_ARCH:=sparc
15 endif 18 endif
configure
@@ -469,7 +469,7 @@ fi @@ -469,7 +469,7 @@ fi
469 if test -z "$target_list" ; then 469 if test -z "$target_list" ; then
470 # these targets are portable 470 # these targets are portable
471 if [ "$softmmu" = "yes" ] ; then 471 if [ "$softmmu" = "yes" ] ; then
472 - target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc64-softmmu" 472 + target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc64-softmmu ppcemb-softmmu "
473 fi 473 fi
474 # the following are Linux specific 474 # the following are Linux specific
475 if [ "$linux_user" = "yes" ] ; then 475 if [ "$linux_user" = "yes" ] ; then
@@ -868,6 +868,7 @@ target_bigendian="no" @@ -868,6 +868,7 @@ target_bigendian="no"
868 [ "$target_cpu" = "sparc64" ] && target_bigendian=yes 868 [ "$target_cpu" = "sparc64" ] && target_bigendian=yes
869 [ "$target_cpu" = "ppc" ] && target_bigendian=yes 869 [ "$target_cpu" = "ppc" ] && target_bigendian=yes
870 [ "$target_cpu" = "ppc64" ] && target_bigendian=yes 870 [ "$target_cpu" = "ppc64" ] && target_bigendian=yes
  871 +[ "$target_cpu" = "ppcemb" ] && target_bigendian=yes
871 [ "$target_cpu" = "mips" ] && target_bigendian=yes 872 [ "$target_cpu" = "mips" ] && target_bigendian=yes
872 [ "$target_cpu" = "mips64" ] && target_bigendian=yes 873 [ "$target_cpu" = "mips64" ] && target_bigendian=yes
873 [ "$target_cpu" = "sh4eb" ] && target_bigendian=yes 874 [ "$target_cpu" = "sh4eb" ] && target_bigendian=yes
@@ -958,6 +959,11 @@ elif test "$target_cpu" = "ppc64" ; then @@ -958,6 +959,11 @@ elif test "$target_cpu" = "ppc64" ; then
958 echo "#define TARGET_ARCH \"ppc64\"" >> $config_h 959 echo "#define TARGET_ARCH \"ppc64\"" >> $config_h
959 echo "#define TARGET_PPC 1" >> $config_h 960 echo "#define TARGET_PPC 1" >> $config_h
960 echo "#define TARGET_PPC64 1" >> $config_h 961 echo "#define TARGET_PPC64 1" >> $config_h
  962 +elif test "$target_cpu" = "ppcemb" ; then
  963 + echo "TARGET_ARCH=ppcemb" >> $config_mak
  964 + echo "#define TARGET_ARCH \"ppcemb\"" >> $config_h
  965 + echo "#define TARGET_PPC 1" >> $config_h
  966 + echo "#define TARGET_PPCEMB 1" >> $config_h
961 elif test "$target_cpu" = "x86_64" ; then 967 elif test "$target_cpu" = "x86_64" ; then
962 echo "TARGET_ARCH=x86_64" >> $config_mak 968 echo "TARGET_ARCH=x86_64" >> $config_mak
963 echo "#define TARGET_ARCH \"x86_64\"" >> $config_h 969 echo "#define TARGET_ARCH \"x86_64\"" >> $config_h