David,

There are functions in gem5 to copy register file from a processor to
another. Those functions might help you with what you are tying to do. I
don't remember function names off the top of my head though.

Thanks,
Amin

On Tue, Oct 9, 2012 at 10:14 PM, David Gloe <[email protected]> wrote:

> Hello,
>
> I would like to be able to send information (the PC and an integer value)
> between CPUs in a gem5 simulation. Instead of using interprocess
> communication, I would like to simulate the existence of an instantaneous
> or nearly instantaneous buffer which can be written to and read from with
> assembly or C instructions.
>
> Right now I am using an SE mode set up with two CPUs, with one process
> running on each.
>
> One crude idea I had would be to use a file with the m5_writefile and
> m5_readfile commands to have one process write to a file and the other read
> from it. Do those functions take simulation time?
>
> Another idea I had would be to use a MessageBuffer. Is it possible to use
> a MessageBuffer in SE mode? How would I add such a buffer to my simulation,
> and then write to it and read from it using C or assembly language?
>
> Thanks,
> David G.
>
> --
> David Gloe
> [email protected] [email protected] [email protected]
> Masters Student, Computer Science
> University of Minnesota
>
> ______________________________**_________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/**mailman/listinfo/gem5-users<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