Since the application which runs on gem5 does not know that is being
executed in a simulator
there is no easy way to make the user application to communicate with
the simulator as fas as
I know . What you could do is create a new instruction and add it to the
ISA This is the logic of the
current checkpoint switch cpu which is pushed to the user level with
the help of a library provided
by gem5 and can be executed by a user level application. As I said I am
not sure if this is the
only solution of your problem.
On 01/21/2013 02:25 PM, fs wrote:
hi, all
i'd like to run a program in gem5 with fs mode, i compiled that
program with cross compiler and run it in gem5 successfully.
I could print value of variants like "tid", "time"etc easily, just
insert a "printf()" function in my program.
however ,i want to tell simualtor value that variants, then i could
take use of them to inform
simulator trigger events.
i think my program is running in user's address space,
how can i transfer those variants from my program to simulator(which
run with top privilege) ,
it's need InterProcess Communication or there is some easy way?
Maybe this question is very stupid, any suggestion is very grateful!
than you in andvance!
_______________________________________________
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