ruby: eliminate typedef integer_t

This commit is contained in:
Nilay Vaish 2012-09-18 22:49:12 -05:00
parent 86b1c0fd54
commit 33c904e0a5
4 changed files with 10 additions and 12 deletions

View file

@ -55,10 +55,10 @@ Address::makeNextStrideAddress(int stride)
+ RubySystem::getBlockSizeBytes()*stride;
}
integer_t
Index
Address::memoryModuleIndex() const
{
integer_t index =
Index index =
bitSelect(RubySystem::getBlockSizeBits() +
RubySystem::getMemorySizeBits(), ADDRESS_WIDTH);
assert (index >= 0);

View file

@ -34,8 +34,6 @@ typedef unsigned long long uint64;
typedef long long int64;
typedef long long integer_t;
typedef int64 Time;
typedef uint64 physical_address_t;

View file

@ -109,7 +109,7 @@ Profiler::wakeup()
{
// FIXME - avoid the repeated code
vector<integer_t> perProcCycleCount(m_num_of_sequencers);
vector<int64_t> perProcCycleCount(m_num_of_sequencers);
for (int i = 0; i < m_num_of_sequencers; i++) {
perProcCycleCount[i] =
@ -155,7 +155,7 @@ Profiler::setPeriodicStatsFile(const string& filename)
}
void
Profiler::setPeriodicStatsInterval(integer_t period)
Profiler::setPeriodicStatsInterval(int64_t period)
{
cout << "Recording periodic statistics every " << m_stats_period
<< " Ruby cycles" << endl;
@ -223,7 +223,7 @@ Profiler::printStats(ostream& out, bool short_stats)
out << endl;
}
vector<integer_t> perProcCycleCount(m_num_of_sequencers);
vector<int64_t> perProcCycleCount(m_num_of_sequencers);
for (int i = 0; i < m_num_of_sequencers; i++) {
perProcCycleCount[i] =
@ -419,7 +419,7 @@ Profiler::printResourceUsage(ostream& out) const
out << "Resource Usage" << endl;
out << "--------------" << endl;
integer_t pagesize = getpagesize(); // page size in bytes
int64_t pagesize = getpagesize(); // page size in bytes
out << "page_size: " << pagesize << endl;
rusage usage;

View file

@ -79,7 +79,7 @@ class Profiler : public SimObject
void wakeup();
void setPeriodicStatsFile(const std::string& filename);
void setPeriodicStatsInterval(integer_t period);
void setPeriodicStatsInterval(int64_t period);
void printStats(std::ostream& out, bool short_stats=false);
void printShortStats(std::ostream& out) { printStats(out, true); }
@ -182,13 +182,13 @@ class Profiler : public SimObject
std::vector<int64> m_cycles_executed_at_start;
std::ostream* m_periodic_output_file_ptr;
integer_t m_stats_period;
int64_t m_stats_period;
Time m_ruby_start;
time_t m_real_time_start_time;
std::vector<std::vector<integer_t> > m_busyControllerCount;
integer_t m_busyBankCount;
std::vector<std::vector<int64_t> > m_busyControllerCount;
int64_t m_busyBankCount;
Histogram m_multicast_retry_histogram;
Histogram m_filter_action_histogram;