00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00023 #ifndef _INCLUDE_SPU_TOOLS_H_
00024 #define _INCLUDE_SPU_TOOLS_H_
00025
00026 #include "../types.h"
00027 #include "dma_debug.h"
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00033 #ifdef DEBUG
00034
00035 #undef mfc_get
00036 #undef mfc_put
00037
00047 #define mfc_get(ls, ea, size, tag, tid, rid)\
00048 mfc_get_debug(ls, ea, size, tag, tid, rid, __FILE__, __LINE__)
00049
00059 #define mfc_put(ls, ea, size, tag, tid, rid)\
00060 mfc_put_debug(ls, ea, size, tag, tid, rid, __FILE__, __LINE__)
00061
00062 #endif
00063
00064
00074 void barrier(unsigned int tag_id);
00075
00086 void init_spe(addr64_t argp, addr64_t envp, void* globals, uint16_t globals_size,
00087 void *locals, uint16_t locals_size);
00088
00096 int get_my_id();
00097
00109 int get_phys_id(int log_id);
00110
00121 int get_log_id(int phys_id);
00122
00123 #ifdef __cplusplus
00124 }
00125 #endif
00126
00127 #endif