arch/x86/functions
changeset 383 f00eb97ff649
parent 380 2f7b676c7b2f
child 387 2fa4b675a9a3
     1.1 --- a/arch/x86/functions	Fri Sep 14 17:43:16 2007 +0000
     1.2 +++ b/arch/x86/functions	Fri Sep 14 21:17:59 2007 +0000
     1.3 @@ -0,0 +1,23 @@
     1.4 +# Compute x86-specific values
     1.5 +
     1.6 +# This one really need a little love! :-(
     1.7 +
     1.8 +CT_DoArchValues() {
     1.9 +    # The architecture part of the tuple:
    1.10 +    arch="${CT_ARCH_ARCH}"
    1.11 +    [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
    1.12 +    case "${arch}" in
    1.13 +        nocona|athlon*64|k8|athlon-fx|opteron)
    1.14 +            CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";;
    1.15 +        "")                           CT_TARGET_ARCH=i386;;
    1.16 +        i386|i486|i586|i686)          CT_TARGET_ARCH="${arch}";;
    1.17 +        winchip*)                     CT_TARGET_ARCH=i486;;
    1.18 +        pentium|pentium-mmx|c3*)      CT_TARGET_ARCH=i586;;
    1.19 +        pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
    1.20 +        *)                            CT_TARGET_ARCH=i586;;
    1.21 +    esac
    1.22 +
    1.23 +    # The system part of the tuple default value is OK.
    1.24 +
    1.25 +    # The endianness option default value is OK.
    1.26 +}