Discussion:
[gem5-users] Processes initialization at Run-time
Tassneem Helal
2018-11-07 22:50:07 UTC
Permalink
Hello everyone,

I was wondering where/when exactly in the code do the processes get
instantiated and how can I access the parameters of each individual process?

Sincerely,

Tassneem Helal
Gabe Black
2018-11-07 23:33:11 UTC
Permalink
Hi Tassneem. Are you using SE or FS mode? In SE mode the processes are set
up by the simulator, but in FS mode they're set up by the guest operating
system.

Gabe
Post by Tassneem Helal
Hello everyone,
I was wondering where/when exactly in the code do the processes get
instantiated and how can I access the parameters of each individual process?
Sincerely,
Tassneem Helal
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Tassneem Helal
2018-11-09 06:58:37 UTC
Permalink
Hi Gabe,

Thank you for your reply.
I just another couple of questions. Where exactly in the simulator code or
in which file do the processes get initialized as I'm using SE Mode.
Also, can I have a SMT and multi-core processor simulation in SE Mode?

Best regards,

Tassneem
Post by Gabe Black
Hi Tassneem. Are you using SE or FS mode? In SE mode the processes are set
up by the simulator, but in FS mode they're set up by the guest operating
system.
Gabe
Post by Tassneem Helal
Hello everyone,
I was wondering where/when exactly in the code do the processes get
instantiated and how can I access the parameters of each individual process?
Sincerely,
Tassneem Helal
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
--
Sincerely,

Tassneem Helal
Gabe Black
2018-11-09 22:38:50 UTC
Permalink
Depending on what architecture you're using, it will be somewhere in
src/arch/, and then also in src/sim/process.hh and src/sim/process.cc. I
believe you can have SMT simulation in SE mode, and I'm pretty sure you can
have multi-core simulations in SE mode, although there isn't a scheduler
which will move processes around between cores, the core assignments have
to be static.

Gabe
Post by Tassneem Helal
Hi Gabe,
Thank you for your reply.
I just another couple of questions. Where exactly in the simulator code or
in which file do the processes get initialized as I'm using SE Mode.
Also, can I have a SMT and multi-core processor simulation in SE Mode?
Best regards,
Tassneem
Post by Gabe Black
Hi Tassneem. Are you using SE or FS mode? In SE mode the processes are
set up by the simulator, but in FS mode they're set up by the guest
operating system.
Gabe
Post by Tassneem Helal
Hello everyone,
I was wondering where/when exactly in the code do the processes get
instantiated and how can I access the parameters of each individual process?
Sincerely,
Tassneem Helal
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
--
Sincerely,
Tassneem Helal
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Tassneem Helal
2018-11-11 16:50:29 UTC
Permalink
Hi Gabe,

I added a new parameter to the Process class and I want this parameter to
be passed from each process initialized to the CPU and the request to be
used by the cache, but I'm having a problem passing this parameter, so do
you know how can I do something like that?

Best regards,

Tassneem
Post by Gabe Black
Depending on what architecture you're using, it will be somewhere in
src/arch/, and then also in src/sim/process.hh and src/sim/process.cc. I
believe you can have SMT simulation in SE mode, and I'm pretty sure you can
have multi-core simulations in SE mode, although there isn't a scheduler
which will move processes around between cores, the core assignments have
to be static.
Gabe
Post by Tassneem Helal
Hi Gabe,
Thank you for your reply.
I just another couple of questions. Where exactly in the simulator code
or in which file do the processes get initialized as I'm using SE Mode.
Also, can I have a SMT and multi-core processor simulation in SE Mode?
Best regards,
Tassneem
Post by Gabe Black
Hi Tassneem. Are you using SE or FS mode? In SE mode the processes are
set up by the simulator, but in FS mode they're set up by the guest
operating system.
Gabe
Post by Tassneem Helal
Hello everyone,
I was wondering where/when exactly in the code do the processes get
instantiated and how can I access the parameters of each individual process?
Sincerely,
Tassneem Helal
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
--
Sincerely,
Tassneem Helal
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
--
Sincerely,

Tassneem Helal
Loading...