Commit 938b1edd10d39cecd06b12013a5713829bcb7720

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent b498c8a0

Only setup TARGET_ARCH when it is different of

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 1 additions and 11 deletions
configure
... ... @@ -1891,15 +1891,14 @@ interp_prefix1=`echo &quot;$interp_prefix&quot; | sed &quot;s/%M/$target_arch2/g&quot;`
1891 1891 echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h
1892 1892 gdb_xml_files=""
1893 1893  
  1894 +TARGET_ARCH="$target_arch2"
1894 1895 case "$target_arch2" in
1895 1896 i386)
1896   - TARGET_ARCH=i386
1897 1897 echo "#define TARGET_ARCH \"i386\"" >> $config_h
1898 1898 echo "#define TARGET_I386 1" >> $config_h
1899 1899 target_phys_bits=32
1900 1900 ;;
1901 1901 x86_64)
1902   - TARGET_ARCH=x86_64
1903 1902 echo "TARGET_BASE_ARCH=i386" >> $config_mak
1904 1903 echo "#define TARGET_ARCH \"x86_64\"" >> $config_h
1905 1904 echo "#define TARGET_I386 1" >> $config_h
... ... @@ -1907,7 +1906,6 @@ case &quot;$target_arch2&quot; in
1907 1906 target_phys_bits=64
1908 1907 ;;
1909 1908 alpha)
1910   - TARGET_ARCH=alpha
1911 1909 echo "#define TARGET_ARCH \"alpha\"" >> $config_h
1912 1910 echo "#define TARGET_ALPHA 1" >> $config_h
1913 1911 target_phys_bits=64
... ... @@ -1923,14 +1921,12 @@ case &quot;$target_arch2&quot; in
1923 1921 target_phys_bits=32
1924 1922 ;;
1925 1923 cris)
1926   - TARGET_ARCH=cris
1927 1924 echo "#define TARGET_ARCH \"cris\"" >> $config_h
1928 1925 echo "#define TARGET_CRIS 1" >> $config_h
1929 1926 target_nptl="yes"
1930 1927 target_phys_bits=32
1931 1928 ;;
1932 1929 m68k)
1933   - TARGET_ARCH=m68k
1934 1930 echo "#define TARGET_ARCH \"m68k\"" >> $config_h
1935 1931 echo "#define TARGET_M68K 1" >> $config_h
1936 1932 bflt="yes"
... ... @@ -1938,7 +1934,6 @@ case &quot;$target_arch2&quot; in
1938 1934 target_phys_bits=32
1939 1935 ;;
1940 1936 microblaze)
1941   - TARGET_ARCH=microblaze
1942 1937 echo "#define TARGET_ARCH \"microblaze\"" >> $config_h
1943 1938 echo "#define TARGET_MICROBLAZE 1" >> $config_h
1944 1939 bflt="yes"
... ... @@ -1974,14 +1969,12 @@ case &quot;$target_arch2&quot; in
1974 1969 target_phys_bits=64
1975 1970 ;;
1976 1971 ppc)
1977   - TARGET_ARCH=ppc
1978 1972 echo "#define TARGET_ARCH \"ppc\"" >> $config_h
1979 1973 echo "#define TARGET_PPC 1" >> $config_h
1980 1974 gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml"
1981 1975 target_phys_bits=32
1982 1976 ;;
1983 1977 ppcemb)
1984   - TARGET_ARCH=ppcemb
1985 1978 echo "TARGET_BASE_ARCH=ppc" >> $config_mak
1986 1979 echo "TARGET_ABI_DIR=ppc" >> $config_mak
1987 1980 echo "#define TARGET_ARCH \"ppcemb\"" >> $config_h
... ... @@ -1991,7 +1984,6 @@ case &quot;$target_arch2&quot; in
1991 1984 target_phys_bits=64
1992 1985 ;;
1993 1986 ppc64)
1994   - TARGET_ARCH=ppc64
1995 1987 echo "TARGET_BASE_ARCH=ppc" >> $config_mak
1996 1988 echo "TARGET_ABI_DIR=ppc" >> $config_mak
1997 1989 echo "#define TARGET_ARCH \"ppc64\"" >> $config_h
... ... @@ -2022,13 +2014,11 @@ case &quot;$target_arch2&quot; in
2022 2014 target_phys_bits=32
2023 2015 ;;
2024 2016 sparc)
2025   - TARGET_ARCH=sparc
2026 2017 echo "#define TARGET_ARCH \"sparc\"" >> $config_h
2027 2018 echo "#define TARGET_SPARC 1" >> $config_h
2028 2019 target_phys_bits=64
2029 2020 ;;
2030 2021 sparc64)
2031   - TARGET_ARCH=sparc64
2032 2022 echo "TARGET_BASE_ARCH=sparc" >> $config_mak
2033 2023 echo "#define TARGET_ARCH \"sparc64\"" >> $config_h
2034 2024 echo "#define TARGET_SPARC 1" >> $config_h
... ...