Commit d325856010ca97e4962aaf3150c5ee7c0d5340bb

Authored by bellard
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 213  
214 214 if test -z "$target_list" ; then
215 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 217 # the following are Linux specific
218 218 if [ "$linux" = "yes" ] ; then
219 219 target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list"
... ... @@ -607,6 +607,7 @@ target_bigendian="no"
607 607 [ "$target_cpu" = "sparc" ] && target_bigendian=yes
608 608 [ "$target_cpu" = "sparc64" ] && target_bigendian=yes
609 609 [ "$target_cpu" = "ppc" ] && target_bigendian=yes
  610 +[ "$target_cpu" = "mips" ] && target_bigendian=yes
610 611 target_softmmu="no"
611 612 if expr $target : '.*-softmmu' > /dev/null ; then
612 613 target_softmmu="yes"
... ... @@ -679,6 +680,10 @@ elif test "$target_cpu" = "x86_64" ; then
679 680 if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then
680 681 echo "#define USE_KQEMU 1" >> $config_h
681 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 687 else
683 688 echo "Unsupported target CPU"
684 689 exit 1
... ...