Sometimes a request is not generated from a CPU, but from a writeback from a
cache for example or a I/O device.  This means that the CPU ID is not set.
You will either need to determine the way in which you want to charge any
requests not generated by a CPU and implement that when the request is
created, or check to make sure the cpuID is valid before using it.  If it
isn't valid you will need to determine what you wish to do.  If you are
trying to keep stats on the CPU ID in the memory system you could just keep
a seperate stat for requests not generated by a CPU.

-Ron

On 7/20/07, Sujay Phadke <[EMAIL PROTECTED]> wrote:

Hello all,

I am trying to get the CPU id using pkt->req->getCpuNum(). It works for
some
cycles but then an error comes up:

m5.opt: build/ALPHA_SE/mem/request.hh:253: int Request::getCpuNum():
Assertion `validCpuAndThreadNums' failed.
cpu=0Program aborted at cycle 225566000

Any ideas?

Sujay

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to