Hi,

Is there any way to share variables between different program on different 
cores in SE mode?


My script is :
build/X86/gem5.opt \
configs/example/se.py \
--cpu-type=DerivO3CPU  \
--sys-clock=4GHz \
-c program1;program2;program3;program4 \
-n 4 \
--caches --l2cache 


This script makes every program run on their own core.
Now I want to allocate a continuous memory space and split the space into four 
chunks for every program. And every program will do things on their own chunk.
I know using multi-threading can achieve this goal. But there are bugs in the 
newest gem5 version when running multi-threading.
I have also tried to use mmap, but there is a warn "mmap: writing to shared 
mmap region is currently unsupported. The write succeeds on the target, but it 
will not be propagated to the host or shared mappings".
Another way I think of is to use map function in Process.py. Firstly I map a 
contiguous range of virtual addresses in every process's address space to a 
common contiguous range of physical addresses. But I don't know how to allocate 
memory in the specified virtual address.


I appreciate your help very much.


Thanks,
Kano
 
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to