Thanks for responding, Elliot. I somewhat understand that after the write
is accomplished, the returning packet won't have the data. But still, why
is the returned value 0 in that case? Shouldn't it still be equal to the
memory access latency.

On Tue, Jul 11, 2023 at 2:34 PM Eliot Moss <m...@cs.umass.edu> wrote:

> On 7/11/2023 1:28 PM, John Smith via gem5-users wrote:
> > So, I used the function pkt->isWrite() to check if the packet is a write
> request. And I observed
> > that inside the pkt->hasData() if condition, pkt->isWrite() returned
> false. Hence only the read
> > packets were entering the if(pkt->hasData()) condition
>
> So you're saying that inside the if condition, pkt->isWrite is *always*
> false?
>
> I see.  I couldn't find a place in the code (in the version I have
> downloaded
> anyway) where the data is dropped, but I can imagine it happening after the
> write is accomplished (though I don't see why), so that the "returning"
> packet no longer has data.  What are the exact types of the components
> involved?  And maybe someone else is more competent to answer this since it
> is somewhat stumping me from my reading of the code.
>
> Cheers - Eliot
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to