Hi Reza,

You can find the physical memory allocation code for SE mode in
src/sim/system.cc (System::allocPhysPages) and src/sim/process.cc
(Process::allocateMem). This should get you started with what you're trying
to do. You can also modify the page table for each process from the Python
config file by using Process::map (see src/sim/process.cc/hh and
src/sim/Process.py)

Cheers,
Jason

On Sat, Jan 28, 2017 at 5:01 AM Mohammad Reza Jokar <[email protected]>
wrote:

> Dear all,
>
> I would like to simulate a 4-core system in SE mode to run SPEC-CPU2006
> multi-program workloads (run 4-program workloads, one program on each
> core). Is there any way to assign an specific memory address range to each
> program? I could not find any file that does the initial memory mapping for
> each program. Although I modified python file, "se.py" to define 4 memory
> address range instead of 1, it does not work and all programs still access
> the whole memory address space. Any help would be appreciated.
>
> Thanks!
> Reza
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to