diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-08-21 05:49:09 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-08-21 05:49:09 -0400 |
commit | 016593f2e91564dc9d675ae42dfd37059f9b5589 (patch) | |
tree | 9eed2d90618a4eccbd6b3c743c4d7545bfb935dd /src/base | |
parent | 452217817f421a64bc022a5977e795229af45b30 (diff) | |
download | gem5-016593f2e91564dc9d675ae42dfd37059f9b5589.tar.xz |
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.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/types.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/base/types.hh b/src/base/types.hh index 3105059ed..ba6d53ad7 100644 --- a/src/base/types.hh +++ b/src/base/types.hh @@ -51,13 +51,11 @@ typedef int64_t Counter; /** - * Clock cycle count type. - * @note using an unsigned breaks the cache. + * Tick count type. */ -typedef int64_t Tick; -typedef uint64_t UTick; +typedef uint64_t Tick; -const Tick MaxTick = LL(0x7fffffffffffffff); +const Tick MaxTick = ULL(0xffffffffffffffff); /** * Address type |