Clock: Make Tick unsigned and remove UTick
Review Request #1320 - Created July 25, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9133:93d82aae1592 --------------------------- Clock: Make Tick unsigned and remove UTick This patch makes the Tick unsigned and removes the UTick typedef. The ticks should never be negative, and there was only one major issue with removing it, caused by the o3 CPU using a -1 as an initial value. The patch has no impact on any regressions.
util/regress all passing (disregarding t1000 and eio)
Issue Summary
4
1
3
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| Are we sure that this is no longer the case? | Nathan Binkert | July 25, 2012, 11:08 p.m. | Open |
Posted (July 25, 2012, 11:08 p.m.)
This seems like a great idea. I'm a bit concerned that there is something still lurking. Are we sure we know what the issue used to be and that it'd no longer a problem?
-
src/base/types.hh (Diff revision 1) -
Are we sure that this is no longer the case?
-
src/base/types.hh (Diff revision 1) -
Is this the correct value of maxtick now? Shouldn't it be ULL instead of LL?
-
src/sim/eventq.hh (Diff revision 1) -
Seems like the comment no longer applies
-
src/sim/eventq.hh (Diff revision 1) -
This too
Review request changed
Updated (July 25, 2012, 11:51 p.m.)
Description: |
|
||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+9 -13) |
-
src/base/types.hh (Diff revision 2) -
This is the first time I have seen ULL being written in this fashion. I usually write the number followed by ULL. For example - 123ULL.
I agree with Ali... looks like it's OK, but it's good to keep this particular change in mind if someone reports a bug in the future.
