Commit 908f52b05c517b07509b2b66fcb73e9506827340

Authored by pbrook
1 parent 9c2a9ea1

Add big-endian SH4-user target


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1992 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 7 additions and 1 deletions
Makefile.target
... ... @@ -30,6 +30,11 @@ ifeq ($(TARGET_ARCH),arm)
30 30 TARGET_ARCH2=armeb
31 31 endif
32 32 endif
  33 +ifeq ($(TARGET_ARCH),sh4)
  34 + ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
  35 + TARGET_ARCH2=sh4eb
  36 + endif
  37 +endif
33 38 ifeq ($(TARGET_ARCH),mips)
34 39 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
35 40 TARGET_ARCH2=mipsel
... ...
configure
... ... @@ -737,6 +737,7 @@ target_bigendian="no"
737 737 [ "$target_cpu" = "ppc" ] && target_bigendian=yes
738 738 [ "$target_cpu" = "ppc64" ] && target_bigendian=yes
739 739 [ "$target_cpu" = "mips" ] && target_bigendian=yes
  740 +[ "$target_cpu" = "sh4eb" ] && target_bigendian=yes
740 741 target_softmmu="no"
741 742 if expr $target : '.*-softmmu' > /dev/null ; then
742 743 target_softmmu="yes"
... ... @@ -827,7 +828,7 @@ elif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then
827 828 echo "#define TARGET_MIPS 1" >> $config_h
828 829 echo "CONFIG_SOFTFLOAT=yes" >> $config_mak
829 830 echo "#define CONFIG_SOFTFLOAT 1" >> $config_h
830   -elif test "$target_cpu" = "sh4" ; then
  831 +elif test "$target_cpu" = "sh4" -o "$target_cpu" = "sh4eb" ; then
831 832 echo "TARGET_ARCH=sh4" >> $config_mak
832 833 echo "#define TARGET_ARCH \"sh4\"" >> $config_h
833 834 echo "#define TARGET_SH4 1" >> $config_h
... ...