Hi all,

In gem5 (base.hh file) 'numCycles' is declared as 'stats::Scalar'. I want to 
cast 'numCycles' to other C++ variable types like 'integer' or 'double', 
however gem5 does not allow the cast from 'Scalar' type to other data types. 
Here is the error that gem5 gives:

build/ALPHA/cpu/o3/cpu.cc:661: error: invalid cast from type 'Stats::Scalar' to 
type 'double'


I appreciate if anybody let me know how I can do this casting.

Thank you very much,
Shervin   
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to