This is a python int which is unbounded.  The Tick type in C++ is a
64-bit integer.  So, yes it can overflow, but not easily.

> I just noticed that the maxtick in configs/common/Options.py (also
> configs/splash2/run.py) was defined as:
> parser.add_option("-m", "--maxtick", type="int")
>
> Is the type "int" here the same as the int type in C/C++? If so, shouldn't
> it overflow easily? (Especially in that maxtick is used to specify the
> number of simulated cycles which will reach a very large number in the
> simulator). I have done some experiments with maxtick as one billion, and
> that number works fine. I wonder if there is a limit on the value of
> maxtick.
>
> Thanks,
> Lide
>
> _______________________________________________
> m5-users mailing list
> m5-users@m5sim.org
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to