Hi,

srcMasterId is only assigned at insertBlock function in lru.cc. This value
is assigned to the masterId of the incoming packet. My issue is when this
incoming request is from masterId which is not a CPU masterId. If it is a
writeback request or some other which doesn't contain the CPU identifier
(masterId : 0,1,2,3), then srcMasterId is set to this masterId and the
original source is lost.

Thanks,
Debiprasanna Sahoo
Research Scholar
IIT Bhubaneswar


On Sat, Jul 26, 2014 at 12:41 PM, Amin Farmahini <amin...@gmail.com> wrote:

> Use srcMasterId to identify the original requester.
>
> Thanks,
> Amin
>
>
> On Sat, Jul 26, 2014 at 1:23 AM, Debiprasanna Sahoo via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Hi,
>>
>> I need to manipulate requests received at cache and dram_ctrl on the
>> basis of their original CPU/Thread source. I tried to get the cpuId from
>> masterId by writing a function in system class , but found (or atleast
>> suspect) that for writeback requests, the original owner (masterId) of the
>> request is lost. I tried with contextId but found that sometimes the
>> contextId is not set.
>>
>> Moreover, when I try to get the masterId of the request in dram_ctrl,
>> sometimes I find that the request is NULL throwing a segfault.
>>
>> I find that their is a field name _cpuId in BaseCPU class, but
>> unfortunately it is not forwarded in any request object.
>>
>> Is there any other means of knowing which CPU or Thread made the request
>> to the cache and dram controller?
>>
>> Thanks,
>> Debiprasanna Sahoo
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to