the storage for statistics is stored in a bit of a funny way (which is
partly historical at this point) to allow flexibility in how stats are
managed.  the data() function shows you how to look at the data, but
in general, you just need to cast the storage variable to the proper
type and then dereference that type.  In this case, I'm pretty sure
you can just cast to a 64 bit integer.

  Nate

On Sat, Nov 19, 2011 at 10:47 AM, Mahmood Naderan <[email protected]> wrote:
> Hi,
> While debugging, a Stats::Scalar variable looks like:
>
> storage    [8]
> 0   0 '\000'
> 1   0 '\000'
> 2   0 '\000'
> 3   0 '\000'
> 4   0 '\000'
> 5   0 '\000'
> 6   0 '\000'
> 7   64 '@'
>
> What does that mean? what is the current value in decimal?
>
> --
> // Naderan *Mahmood;
> _______________________________________________
> 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

Reply via email to