Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 242a396

Browse files
committed
Set powerpc to power4/power6
1 parent 8cb1a2a commit 242a396

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

slaves/linux-cross/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,18 @@ For targets: `powerpc-unknown-linux-gnu`
232232
- Path and misc options > Patches origin = Bundled, then local
233233
- Path and misc options > Local patch directory = /build/patches
234234
- Target options > Target Architecture = powerpc
235+
- Target options > Emit assembly for CPU = power4 -- (+)
236+
- Target options > Tune for CPU = power6 -- (+)
235237
- Operating System > Target OS = linux
236238
- Operating System > Linux kernel version = 2.6.32.68 -- ~RHEL6 kernel
237239
- C-library > glibc version = 2.12.2 -- ~RHEL6 glibc
238240
- C compiler > gcc version = 4.9.3
241+
- C compiler > Core gcc extra config = --with-cpu-32=power4 --with-cpu=default32 -- (+)
242+
- C compiler > gcc extra config = --with-cpu-32=power4 --with-cpu=default32 -- (+)
239243
- C compiler > C++ = ENABLE -- to cross compile LLVM
240244

245+
(+) These CPU options match the configuration of the toolchains in RHEL6.
246+
241247
## `powerpc64-linux-gnu.config`
242248

243249
For targets: `powerpc64-unknown-linux-gnu`

slaves/linux-cross/powerpc-linux-gnu.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ CT_ARCH_SUPPORTS_WITH_FLOAT=y
101101
CT_ARCH_DEFAULT_BE=y
102102
CT_ARCH_DEFAULT_32=y
103103
CT_ARCH_ABI=""
104-
CT_ARCH_CPU=""
105-
CT_ARCH_TUNE=""
104+
CT_ARCH_CPU="power4"
105+
CT_ARCH_TUNE="power6"
106106
CT_ARCH_BE=y
107107
# CT_ARCH_LE is not set
108108
CT_ARCH_32=y
@@ -391,8 +391,8 @@ CT_CC_GCC_HAS_LIBSANITIZER=y
391391
CT_CC_GCC_VERSION="4.9.3"
392392
# CT_CC_LANG_FORTRAN is not set
393393
CT_CC_GCC_ENABLE_CXX_FLAGS=""
394-
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY=""
395-
CT_CC_GCC_EXTRA_CONFIG_ARRAY=""
394+
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--with-cpu-32=power4 --with-cpu=default32"
395+
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-cpu-32=power4 --with-cpu=default32"
396396
CT_CC_GCC_EXTRA_ENV_ARRAY=""
397397
CT_CC_GCC_STATIC_LIBSTDCXX=y
398398
# CT_CC_GCC_SYSTEM_ZLIB is not set

0 commit comments

Comments
 (0)