Hi, all
I am a newbie of gem5. I want to construct a multi-core x86 processor in
gem5. I am trying to use m5threads instead of pthread which seems not
supported by gem5. However the m5thread is configured for sparc. Which
the error messages as follow:
Makefile:43: warning: overriding commands for target `test_omp'
Makefile:35: warning: ignoring old commands for target `test_omp'
gcc -g -O3 -DM5_PROFILING -c ../pthread.c -o ../pthread.o
In file included from ../pthread.c:48:
../profiling_hooks.h:37: error: #error "M5 profiling hooks not
implemented for your architecture, write them"
make: *** [../pthread.o] Error 1
I just changed the #if defined (__sparc) to #if defined (__x86_64) at
line 29 in profiling_hooks.h, since I don't understand the
m5_prof_syscall function defined in next express. I got errors:
Makefile:43: warning: overriding commands for target `test_omp'
Makefile:35: warning: ignoring old commands for target `test_omp'
gcc -g -O3 -DM5_PROFILING -c ../pthread.c -o ../pthread.o
../pthread.c: In function ‘pthread_mutex_lock’:
../pthread.c:308: error: unknown register name ‘o0’ in ‘asm’
../pthread.c:308: error: unknown register name ‘g1’ in ‘asm’
../pthread.c:310: error: unknown register name ‘o0’ in ‘asm’
../pthread.c:310: error: unknown register name ‘g1’ in ‘asm’
... ...
Does anyone know how to use m5threads in X86_SE mode?
By the way, I use the simple configuration file X86_SE from
~/gem5/build_opts directory to build gem5.opt, and build/gem5.opt
configs/example/se.py -c ../m5threads/tests/xx -n 2 as running command
for 2 cores processor.
Thanks,
Meng Zhang
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users