Hi,

I am trying to add Vector2d for statistics. However, the assertion of index
>= 0 and index < size() always fail. I am sure that my index is correct. I
did assertion for the row and column and it did not fail. Can anyone help?
Here is how I defined it:

Stats::Vector2d arch_stats;

I initialized it as:
     arch_stats
        .init(TheISA::NumIntRegs, TheISA::NumIntRegs )
        .name(name() + ".arch_stats")
        .desc("The number of times two architectural registers share the
same value")
        .flags(total)
        ;

and then accessed it as:
archstats[x][y]++  I am sure that x, and y are within bound.

Thanks,
-- 
Heba
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to