MIPS support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1482 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0d8aca8c67
commit
d325856010
|
@ -213,7 +213,7 @@ fi
|
||||||
|
|
||||||
if test -z "$target_list" ; then
|
if test -z "$target_list" ; then
|
||||||
# these targets are portable
|
# these targets are portable
|
||||||
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu"
|
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu"
|
||||||
# the following are Linux specific
|
# the following are Linux specific
|
||||||
if [ "$linux" = "yes" ] ; then
|
if [ "$linux" = "yes" ] ; then
|
||||||
target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list"
|
target_list="i386-user arm-user armeb-user sparc-user ppc-user $target_list"
|
||||||
|
@ -607,6 +607,7 @@ target_bigendian="no"
|
||||||
[ "$target_cpu" = "sparc" ] && target_bigendian=yes
|
[ "$target_cpu" = "sparc" ] && target_bigendian=yes
|
||||||
[ "$target_cpu" = "sparc64" ] && target_bigendian=yes
|
[ "$target_cpu" = "sparc64" ] && target_bigendian=yes
|
||||||
[ "$target_cpu" = "ppc" ] && target_bigendian=yes
|
[ "$target_cpu" = "ppc" ] && target_bigendian=yes
|
||||||
|
[ "$target_cpu" = "mips" ] && target_bigendian=yes
|
||||||
target_softmmu="no"
|
target_softmmu="no"
|
||||||
if expr $target : '.*-softmmu' > /dev/null ; then
|
if expr $target : '.*-softmmu' > /dev/null ; then
|
||||||
target_softmmu="yes"
|
target_softmmu="yes"
|
||||||
|
@ -679,6 +680,10 @@ elif test "$target_cpu" = "x86_64" ; then
|
||||||
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then
|
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then
|
||||||
echo "#define USE_KQEMU 1" >> $config_h
|
echo "#define USE_KQEMU 1" >> $config_h
|
||||||
fi
|
fi
|
||||||
|
elif test "$target_cpu" = "mips" ; then
|
||||||
|
echo "TARGET_ARCH=mips" >> $config_mak
|
||||||
|
echo "#define TARGET_ARCH \"mips\"" >> $config_h
|
||||||
|
echo "#define TARGET_MIPS 1" >> $config_h
|
||||||
else
|
else
|
||||||
echo "Unsupported target CPU"
|
echo "Unsupported target CPU"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue