On Thu, 3 Feb 2011, biswabandan panda wrote:
first i thought for this,but when i was able to build it successfully
without an error, i thought it may work. i want the stats at this point
only, could u plz tell me how i can go fot it?
On Thu, Feb 3, 2011 at 10:45 PM, Nilay Vaish <[email protected]> wrote:
Clearly blk can be invalid, in which case blk->set will result in a
segmentation fault.
The compiler cannot detect runtime errors, successful compilation is no
certificate that all pointer accesses are valid. Just put in a check that
blk is not NULL, and then access members of blk.
--
Nilay
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users