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