Le vendredi 21 décembre 2012 00:29:36 UTC+1, Si Hammond a écrit :
> SST does not let you run full system mode operating systems in the
>
> current way we have our components implemented. Do you want to do full
>
> system for a specific reasons? We can pretty much get threads working
>
> in system emulation if thats of interest?
>
how can we use threads with multiple core architecture ?
i tried the dualCore-exampleM5.xml as a configuration file inside the example.xml file , M5_EXE is : ~/scratch/sst-simulator-read-only/sst/elements/m5C/app/pthread_test/test , this is the binary file after the compilation
when i execute this : ~/scratch/sst-simulatorreadonly/sst/elements/m5C/app/pthread_test$ ./test 2
Ihave this :
numThreads 2
Creation Thread: 0
Creation Thread: 1
join Thread: 0
join Thread: 1
test done
my $ARG1 is 2
but I had that error :
/home/local/belhaj/local/bin/sst.x --sdl-file=example.xml --lib-path=/home/local/belhaj/local/lib/sst
WARNING: Building component "system" with no links assigned.
M5:configFile `dualCore-exampleM5.xml`
default system
default process
M5:registering exit `m5.nid0.core0.workload`
warn: cache block_size=64 hit_latency=1000
warn: cache block_size=64 hit_latency=1000
default system
default process
M5:registering exit `m5.nid0.core1.workload`
warn: cache block_size=64 hit_latency=1000
warn: cache block_size=64 hit_latency=1000
warn: bus width 64, clock 1000
warn: cache block_size=64 hit_latency=10000
warn: bus width 64, clock 1000
warn: cache block_size=64 hit_latency=10000
warn: bus width 64, clock 1000
M5:registering exit
0:Exit::refInc():61: component in construction increments exit multiple times.
warn: instruction 'fnstcw_Mw' unimplemented
warn: instruction 'fldcw_Mw' unimplemented
panic: Page-Fault: cpu=0, PC=0x406e12, Tried to read unmapped address 0.
@ cycle 10953000
[invoke:build/X86_SE/arch/x86/faults.cc, line 293]
Memory Usage: 4379944 KBytes
[cimepe39:13839] *** Process received signal ***
[cimepe39:13839] Signal: Aborted (6)
[cimepe39:13839] Signal code: (-6)
[cimepe39:13839] [ 0] /lib/libpthread.so.0(+0xeff0) [0x7f6ec188bff0]
[cimepe39:13839] [ 1] /lib/libc.so.6(gsignal+0x35) [0x7f6ec154d1b5]
[cimepe39:13839] [ 2] /lib/libc.so.6(abort+0x180) [0x7f6ec154ffc0]
[cimepe39:13839] [ 3] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_Z14__exit_messagePKciS0_S0_iS0_N7VarArgs8ArgumentIN2cp5PrintEEES5_S5_S5_S5_S5_S5_S5_S5_S5_S5_S5_S5_S5_S5_S5_+0x8f5) [0x7f6ebc9c2675]
[cimepe39:13839] [ 4] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN6X86ISA9PageFault6invokeEP13ThreadContext14RefCountingPtrI10StaticInstE+0x32a) [0x7f6ebc25e7fa]
[cimepe39:13839] [ 5] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN9FullO3CPUI9O3CPUImplE4trapE14RefCountingPtrI9FaultBaseEsS2_I10StaticInstE+0x38) [0x7f6ebc0c7c18]
[cimepe39:13839] [ 6] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN13DefaultCommitI9O3CPUImplE10commitHeadER14RefCountingPtrI13BaseO3DynInstIS0_EEj+0x1141) [0x7f6ebc0b32e1]
[cimepe39:13839] [ 7] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN13DefaultCommitI9O3CPUImplE11commitInstsEv+0xe48) [0x7f6ebc0ba198]
[cimepe39:13839] [ 8] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN13DefaultCommitI9O3CPUImplE6commitEv+0x1f63) [0x7f6ebc0bea73]
[cimepe39:13839] [ 9] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN13DefaultCommitI9O3CPUImplE4tickEv+0x168) [0x7f6ebc0bf918]
[cimepe39:13839] [10] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN9FullO3CPUI9O3CPUImplE4tickEv+0x4af) [0x7f6ebc0ee37f]
[cimepe39:13839] [11] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_ZN10EventQueue10serviceOneEv+0x34) [0x7f6ebca0b234]
[cimepe39:13839] [12] /home/local/belhaj/scratch/src/sst-gem5-2.3.0/build/X86_SE/libgem5_opt.so(_Z8simulatel+0x6bd) [0x7f6ebca573bd]
[cimepe39:13839] [13] /home/local/belhaj/local/lib/sst/libm5C.so(_ZN2M55clockEm+0xe7) [0x7f6ebd118607]
[cimepe39:13839] [14] /home/local/belhaj/local/bin/sst.x(_ZN3SST5Clock7executeEv+0x55) [0x784cd5]
[cimepe39:13839] [15] /home/local/belhaj/local/bin/sst.x(_ZN3SST10Simulation3RunEv+0x124) [0x83a474]
[cimepe39:13839] [16] /home/local/belhaj/local/bin/sst.x(main+0xb6b) [0x81a2eb]
[cimepe39:13839] [17] /lib/libc.so.6(__libc_start_main+0xfd) [0x7f6ec1539c8d]
[cimepe39:13839] [18] /home/local/belhaj/local/bin/sst.x() [0x77acb9]
[cimepe39:13839] *** End of error message ***
Aborted
that would be kind of you if you help me with this