Hi, I am using m5thread. I come into a problem with compiling the m5thread. I
use a alpha cross-compiler. It gives the following errors:
alphaev67-unknown-linux-gnu-gcc -g -O3 -DM5_PROFILING -c ../pthread.c -o
../pthread.o
In file included from ../pthread.c:47:
../tls_defs.h:168:4: error: #error "No TLS defs for your architecture"
In file included from ../pthread.c:48:
../profiling_hooks.h:37:3: error: #error "M5 profiling hooks not implemented
for your architecture, write them"
make: *** [../pthread.o] Error 1
>From tls_defs.h, I see TLS support is only defined for architecture x86_64,
>amd64 and sparc.
>From profiling_hooks.h, I see profiling hooks is only defined for architecture
>sparc, Is anyone know how to define TLS support and profiling hooks for alpha?
>Thank you very much.
from tls_defs.h
111 #if defined(__x86_64) || defined(__amd64)
...
159 #elif defined (__sparc)
160
161 register struct pthread *__thread_self __asm__("%g7");
162
163 /* Code to initially initialize the thread pointer. */
164 # define TLS_INIT_TP(descr, secondcall) \
165 (__thread_self = (__typeof (__thread_self)) (descr), NULL)
166
167 #else
168 #error "No TLS defs for your architecture"
169 #endif
from profiling_hooks.h
26 #if defined(M5_PROFILING)
27
28 /* M5 profiling syscall asm */
29 #if defined (__sparc)
30 #define m5_prof_syscall(syscall_num, arg) __asm__ __volatile__ ( \
31 "mov " #syscall_num ", %%g1\n\t" \
32 "mov %0, %%o0\n\t" \
33 "ta 0x6d\n\t" \
34 :: "r"(arg) : "g1", "o0" \
35 );
36 #else
37 #error "M5 profiling hooks not implemented for your architecture, write
them"
38 #endif
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users