You probably need to check the virtual address, rather than physical. Jack Harvard
On Thu, Apr 24, 2014 at 5:13 AM, anonymous <[email protected]> wrote: > Hi, > > I have a question about cache block locations. > > I have a C struct with 2 integer members > > I have an array of these structs. > I am accessing the array and subsequently > the data members > > Now I am catching the pkt as they come into > timing request in cache_impl.hh file. > > When I print out the data location > through the total length of the block > I see each data member coming in its own block > > this is surprising to me since they are both > part of the same struct. > > Additionally I printed the memory address of both > and they are not remotely near each other > > How is this possible? > How does gem5 store arrays and member variables? > > > Thanks for any help > > _______________________________________________ > 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
