Permalink
Browse files

Merge pull request #3 from javierguzman/master

Tile64 support added
  • Loading branch information...
2 parents cc3c8eb + 8ffd69e commit 9c61a687642bcce614054b6b694cbd6586210965 @penberg penberg committed Aug 22, 2011
Showing with 136 additions and 0 deletions.
  1. +22 −0 config/tile/atomictile.h
  2. +25 −0 config/tile/common.h
  3. +8 −0 config/tile/linux/config.frag
  4. +11 −0 config/tile/linux/md.c
  5. +41 −0 config/tile/linux/md.h
  6. +20 −0 config/tile/threads.h
  7. +9 −0 scripts/config.sub
View
@@ -0,0 +1,22 @@
+/*
+* tile/atomictile.h
+* Some necessary macros and atomic.h
+*
+* Copyright (c) 2011 Francisco Javier Guzmán Jiménez <dejavih@gmail.com>. All rights reserved.
+* See the file "license.terms" for information on usage and redistribution
+* of this file.
+*
+* written by Francisco Javier Guzmán Jiménez
+* <dejavih@gmail.com><dejavih@hotmail.es><javierguzman@alu.uma.es>
+*
+*/
+#ifndef __tile_atomictile_h
+
+#define __tile_atomictile_h
+#define COMPARE_AND_EXCHANGE(A,O,N) (atomic_cmpxchg(A,N,O)==O)
+#define atomic_decrement(mem) atomic_dec(mem)
+#define atomic_increment(mem) atomic_inc(mem)
+
+#include "atomic.h" /* atomic.h is a confidential file of Tilera, you must buy TileraMDE*/
+
+#endif
View
@@ -0,0 +1,25 @@
+/*
+* tile/common.h
+* Common configuration information for tile based machines.
+*
+* Copyright (c) 2011 Francisco Javier Guzmán Jiménez <dejavih@gmail.com>. All rights reserved.
+* See the file "license.terms" for information on usage and redistribution
+* of this file.
+*
+* written by Francisco Javier Guzmán Jiménez
+* <dejavih@gmail.com><dejavih@hotmail.es><javierguzman@alu.uma.es>
+*
+*/
+#ifndef __tile_common_h
+
+#define __tile_common_h
+#include "generic/gentypes.h"
+#include "gtypes.h"
+#include "gccbuiltin.h"
+#include "generic/genatomic.h"
+#include "atomictile.h"
+#include "katomic.h"
+#include "generic/comparexch.h"
+
+#endif
+
@@ -0,0 +1,8 @@
+#
+# tile/linux configuration.
+#
+# if we use cross environment, following values may not be detected.
+if [ "$cross_compiling" = yes ]; then
+ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+fi
+
View
@@ -0,0 +1,11 @@
+/*
+* tile/linux/md.c
+* Linux Tile specific functions.
+*
+* Copyright (c) 2011 Francisco Javier Guzmán Jiménez <dejavih@gmail.com>. All rights reserved.
+* See the file "license.terms" for information on usage and redistribution
+* of this file.
+*
+* written by Francisco Javier Guzmán Jiménez
+* <dejavih@gmail.com><dejavih@hotmail.es><javierguzman@alu.uma.es>
+*/
View
@@ -0,0 +1,41 @@
+/*
+* tile/linux/md.h
+* Linux Tile configuration information.
+*
+* Copyright (c) 2011 Francisco Javier Guzmán Jiménez <dejavih@gmail.com>. All rights reserved.
+* See the file "license.terms" for information on usage and redistribution
+* of this file.
+*
+* Copyright (c) 1996, 1997
+* Transvirtual Technologies, Inc. All rights reserved.
+*
+* Copyright (c) 2003
+* Helmer Kraemer <hkraemer@kaffe.org>. All rights reserved.
+*
+* written by Francisco Javier Guzmán Jiménez
+* <dejavih@gmail.com><dejavih@hotmail.es><javierguzman@alu.uma.es>
+*/
+#ifndef __tile_linux_md_h
+
+#define __tile_linux_md_h
+#include "tile/common.h"
+#include "tile/threads.h"
+
+/*We suppose that we use LibFFI, if we do not use it, we must include sysdepCallMethod.h*/
+#include <sysdepCallMethod-ffi.h>
+
+#include <signal.h>
+#include <ucontext.h>
+
+#include "asm/page.h"
+#define KAFFEMD_PAGESIZE PAGE_SIZE
+
+
+#define SP_OFFSET 24
+
+#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t *tile_info, ucontext_t *sc
+#define SIGNAL_CONTEXT_POINTER(scp) ucontext_t *scp
+#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
+#define SIGNAL_PC(scp) (scp->uc_mcontext.sc_iaoq[0])
+#endif
+
View
@@ -0,0 +1,20 @@
+/*
+* tile/threads.h
+*
+* Copyright (c) 2011 Francisco Javier Guzmán Jiménez <dejavih@gmail.com>. All rights reserved.
+* See the file "license.terms" for information on usage and redistribution
+* of this file.
+*
+* written by Francisco Javier Guzmán Jiménez
+* <dejavih@gmail.com><dejavih@hotmail.es><javierguzman@alu.uma.es>
+*/
+
+#ifndef __tile_linux_threads_h
+
+#define __tile_linux_threads_h
+#define THREADSTACKSIZE (32 * 1024)
+#define SP_OFFSET 24
+
+#endif
+
+
View
9 scripts/config.sub 100644 → 100755
@@ -283,6 +283,7 @@ case $basic_machine in
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu | strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
+ | tile \
| v850 | v850e \
| we32k \
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
@@ -366,6 +367,7 @@ case $basic_machine in
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tron-* \
+ | tile-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
@@ -1017,6 +1019,10 @@ case $basic_machine in
basic_machine=tic6x-unknown
os=-coff
;;
+ tile)
+ basic_machine=tile
+ os=-linux
+ ;;
tx39)
basic_machine=mipstx39-unknown
;;
@@ -1588,6 +1594,9 @@ case $basic_machine in
-ptx*)
vendor=sequent
;;
+ -tile*)
+ vendor=tilera
+ ;;
-tpf*)
vendor=ibm
;;

1 comment on commit 9c61a68

Can somebody please tag 1.1.10???

thanks

Please sign in to comment.