diff options
author | Nathan Binkert <nate@binkert.org> | 2009-06-04 23:21:12 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-06-04 23:21:12 -0700 |
commit | 6faf377b5305f9dcc3c7b013c4d67f5accb92617 (patch) | |
tree | 0e437fb49a32dd3d2d2bec95a8dc3bdb4ddf05b0 /src/cpu/pred | |
parent | 4e3426624557b555c354035ee3961eab7554d81d (diff) | |
download | gem5-6faf377b5305f9dcc3c7b013c4d67f5accb92617.tar.xz |
types: clean up types, especially signed vs unsigned
Diffstat (limited to 'src/cpu/pred')
-rw-r--r-- | src/cpu/pred/2bit_local.cc | 4 | ||||
-rw-r--r-- | src/cpu/pred/btb.cc | 4 | ||||
-rw-r--r-- | src/cpu/pred/ras.cc | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/cpu/pred/2bit_local.cc b/src/cpu/pred/2bit_local.cc index 65925fe79..a70d65296 100644 --- a/src/cpu/pred/2bit_local.cc +++ b/src/cpu/pred/2bit_local.cc @@ -58,7 +58,7 @@ LocalBP::LocalBP(unsigned _localPredictorSize, // Setup the array of counters for the local predictor. localCtrs.resize(localPredictorSets); - for (int i = 0; i < localPredictorSets; ++i) + for (unsigned i = 0; i < localPredictorSets; ++i) localCtrs[i].setBits(_localCtrBits); DPRINTF(Fetch, "Branch predictor: local predictor size: %i\n", @@ -73,7 +73,7 @@ LocalBP::LocalBP(unsigned _localPredictorSize, void LocalBP::reset() { - for (int i = 0; i < localPredictorSets; ++i) { + for (unsigned i = 0; i < localPredictorSets; ++i) { localCtrs[i].reset(); } } diff --git a/src/cpu/pred/btb.cc b/src/cpu/pred/btb.cc index 81676aceb..c6a5e23f9 100644 --- a/src/cpu/pred/btb.cc +++ b/src/cpu/pred/btb.cc @@ -47,7 +47,7 @@ DefaultBTB::DefaultBTB(unsigned _numEntries, btb.resize(numEntries); - for (int i = 0; i < numEntries; ++i) { + for (unsigned i = 0; i < numEntries; ++i) { btb[i].valid = false; } @@ -61,7 +61,7 @@ DefaultBTB::DefaultBTB(unsigned _numEntries, void DefaultBTB::reset() { - for (int i = 0; i < numEntries; ++i) { + for (unsigned i = 0; i < numEntries; ++i) { btb[i].valid = false; } } diff --git a/src/cpu/pred/ras.cc b/src/cpu/pred/ras.cc index 5af188749..6373e5de3 100644 --- a/src/cpu/pred/ras.cc +++ b/src/cpu/pred/ras.cc @@ -39,7 +39,7 @@ ReturnAddrStack::init(unsigned _numEntries) addrStack.resize(numEntries); - for (int i = 0; i < numEntries; ++i) + for (unsigned i = 0; i < numEntries; ++i) addrStack[i] = 0; } @@ -48,7 +48,7 @@ ReturnAddrStack::reset() { usedEntries = 0; tos = 0; - for (int i = 0; i < numEntries; ++i) + for (unsigned i = 0; i < numEntries; ++i) addrStack[i] = 0; } |