Commit d325856010ca97e4962aaf3150c5ee7c0d5340bb
1 parent
0d8aca8c
MIPS support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1482 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
1 deletions
configure
@@ -213,7 +213,7 @@ fi | @@ -213,7 +213,7 @@ fi | ||
213 | 213 | ||
214 | if test -z "$target_list" ; then | 214 | if test -z "$target_list" ; then |
215 | # these targets are portable | 215 | # these targets are portable |
216 | - target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu" | 216 | + target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu" |
217 | # the following are Linux specific | 217 | # the following are Linux specific |
218 | if [ "$linux" = "yes" ] ; then | 218 | if [ "$linux" = "yes" ] ; then |
219 | target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list" | 219 | target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list" |
@@ -607,6 +607,7 @@ target_bigendian="no" | @@ -607,6 +607,7 @@ target_bigendian="no" | ||
607 | [ "$target_cpu" = "sparc" ] && target_bigendian=yes | 607 | [ "$target_cpu" = "sparc" ] && target_bigendian=yes |
608 | [ "$target_cpu" = "sparc64" ] && target_bigendian=yes | 608 | [ "$target_cpu" = "sparc64" ] && target_bigendian=yes |
609 | [ "$target_cpu" = "ppc" ] && target_bigendian=yes | 609 | [ "$target_cpu" = "ppc" ] && target_bigendian=yes |
610 | +[ "$target_cpu" = "mips" ] && target_bigendian=yes | ||
610 | target_softmmu="no" | 611 | target_softmmu="no" |
611 | if expr $target : '.*-softmmu' > /dev/null ; then | 612 | if expr $target : '.*-softmmu' > /dev/null ; then |
612 | target_softmmu="yes" | 613 | target_softmmu="yes" |
@@ -679,6 +680,10 @@ elif test "$target_cpu" = "x86_64" ; then | @@ -679,6 +680,10 @@ elif test "$target_cpu" = "x86_64" ; then | ||
679 | if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then | 680 | if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then |
680 | echo "#define USE_KQEMU 1" >> $config_h | 681 | echo "#define USE_KQEMU 1" >> $config_h |
681 | fi | 682 | fi |
683 | +elif test "$target_cpu" = "mips" ; then | ||
684 | + echo "TARGET_ARCH=mips" >> $config_mak | ||
685 | + echo "#define TARGET_ARCH \"mips\"" >> $config_h | ||
686 | + echo "#define TARGET_MIPS 1" >> $config_h | ||
682 | else | 687 | else |
683 | echo "Unsupported target CPU" | 688 | echo "Unsupported target CPU" |
684 | exit 1 | 689 | exit 1 |