diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-04-30 19:37:33 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-05-01 08:48:06 +0200 |
commit | b9cb7767858bde65b88385dfeed8b1f215f24af2 (patch) | |
tree | 93f707c0fa5032a553c23b59f0b7770d6fd3fc5c /toolchain/gcc/patches/5.3.0/tilegx-fix.patch | |
parent | f03053c18301e7353236f7f0114cc6499eec3e02 (diff) |
tilegx: add more simple patch
Diffstat (limited to 'toolchain/gcc/patches/5.3.0/tilegx-fix.patch')
-rw-r--r-- | toolchain/gcc/patches/5.3.0/tilegx-fix.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.3.0/tilegx-fix.patch b/toolchain/gcc/patches/5.3.0/tilegx-fix.patch new file mode 100644 index 000000000..563ea784d --- /dev/null +++ b/toolchain/gcc/patches/5.3.0/tilegx-fix.patch @@ -0,0 +1,24 @@ +diff -Nur gcc-5.3.0.orig/gcc/config/tilegx/linux.h gcc-5.3.0/gcc/config/tilegx/linux.h +--- gcc-5.3.0.orig/gcc/config/tilegx/linux.h 2015-01-05 13:33:28.000000000 +0100 ++++ gcc-5.3.0/gcc/config/tilegx/linux.h 2016-04-29 07:14:10.534973350 +0200 +@@ -55,8 +55,6 @@ + /* For __clear_cache in libgcc2.c. */ + #ifdef IN_LIBGCC2 + +-#include <arch/icache.h> +- + /* Use the minimum page size of 4K. Alternatively we can call + getpagesize() but it introduces a libc dependence. */ + #undef CLEAR_INSN_CACHE +diff -Nur gcc-5.3.0.orig/libgcc/config/tilepro/atomic.h gcc-5.3.0/libgcc/config/tilepro/atomic.h +--- gcc-5.3.0.orig/libgcc/config/tilepro/atomic.h 2015-01-05 13:33:28.000000000 +0100 ++++ gcc-5.3.0/libgcc/config/tilepro/atomic.h 2016-04-29 07:15:11.149301459 +0200 +@@ -93,7 +93,7 @@ + #endif + + #ifdef __tilegx__ +-#include <arch/spr_def.h> ++#define SPR_CMPEXCH_VALUE 0x2780 + #else + #include <asm/unistd.h> + #endif |