ruby: remove extra whitespace and correct misspelled words
This commit is contained in:
parent
a74c446e7d
commit
9eda4bdc5a
18 changed files with 52 additions and 51 deletions
|
@ -180,7 +180,7 @@ class MessageBuffer
|
||||||
Cycles m_time_last_time_size_checked;
|
Cycles m_time_last_time_size_checked;
|
||||||
unsigned int m_size_last_time_size_checked;
|
unsigned int m_size_last_time_size_checked;
|
||||||
|
|
||||||
// variables used so enqueues appear to happen imediately, while
|
// variables used so enqueues appear to happen immediately, while
|
||||||
// pop happen the next cycle
|
// pop happen the next cycle
|
||||||
Cycles m_time_last_time_enqueue;
|
Cycles m_time_last_time_enqueue;
|
||||||
Tick m_time_last_time_pop;
|
Tick m_time_last_time_pop;
|
||||||
|
|
|
@ -61,7 +61,7 @@ class Network : public ClockedObject
|
||||||
typedef RubyNetworkParams Params;
|
typedef RubyNetworkParams Params;
|
||||||
Network(const Params *p);
|
Network(const Params *p);
|
||||||
const Params * params() const
|
const Params * params() const
|
||||||
{ return dynamic_cast<const Params *>(_params);}
|
{ return dynamic_cast<const Params *>(_params); }
|
||||||
|
|
||||||
virtual ~Network();
|
virtual ~Network();
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|
|
@ -48,9 +48,9 @@ class BaseGarnetNetwork : public Network
|
||||||
BaseGarnetNetwork(const Params *p);
|
BaseGarnetNetwork(const Params *p);
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
int getNiFlitSize() {return m_ni_flit_size; }
|
int getNiFlitSize() { return m_ni_flit_size; }
|
||||||
int getVCsPerVnet() {return m_vcs_per_vnet; }
|
int getVCsPerVnet() { return m_vcs_per_vnet; }
|
||||||
bool isFaultModelEnabled() {return m_enable_fault_model;}
|
bool isFaultModelEnabled() { return m_enable_fault_model; }
|
||||||
FaultModel* fault_model;
|
FaultModel* fault_model;
|
||||||
|
|
||||||
void increment_injected_flits(int vnet) { m_flits_injected[vnet]++; }
|
void increment_injected_flits(int vnet) { m_flits_injected[vnet]++; }
|
||||||
|
|
|
@ -54,8 +54,8 @@ class GarnetNetwork_d : public BaseGarnetNetwork
|
||||||
~GarnetNetwork_d();
|
~GarnetNetwork_d();
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
int getBuffersPerDataVC() {return m_buffers_per_data_vc; }
|
int getBuffersPerDataVC() { return m_buffers_per_data_vc; }
|
||||||
int getBuffersPerCtrlVC() {return m_buffers_per_ctrl_vc; }
|
int getBuffersPerCtrlVC() { return m_buffers_per_ctrl_vc; }
|
||||||
|
|
||||||
void collateStats();
|
void collateStats();
|
||||||
void regStats();
|
void regStats();
|
||||||
|
|
|
@ -61,7 +61,8 @@ class BankedArray
|
||||||
unsigned int mapIndexToBank(int64 idx);
|
unsigned int mapIndexToBank(int64 idx);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BankedArray(unsigned int banks, Cycles accessLatency, unsigned int startIndexBit);
|
BankedArray(unsigned int banks, Cycles accessLatency,
|
||||||
|
unsigned int startIndexBit);
|
||||||
|
|
||||||
// Note: We try the access based on the cache index, not the address
|
// Note: We try the access based on the cache index, not the address
|
||||||
// This is so we don't get aliasing on blocks being replaced
|
// This is so we don't get aliasing on blocks being replaced
|
||||||
|
|
|
@ -86,16 +86,16 @@ RubySystem::RubySystem(const Params *p)
|
||||||
void
|
void
|
||||||
RubySystem::registerNetwork(Network* network_ptr)
|
RubySystem::registerNetwork(Network* network_ptr)
|
||||||
{
|
{
|
||||||
m_network = network_ptr;
|
m_network = network_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
RubySystem::registerAbstractController(AbstractController* cntrl)
|
RubySystem::registerAbstractController(AbstractController* cntrl)
|
||||||
{
|
{
|
||||||
m_abs_cntrl_vec.push_back(cntrl);
|
m_abs_cntrl_vec.push_back(cntrl);
|
||||||
|
|
||||||
MachineID id = cntrl->getMachineID();
|
MachineID id = cntrl->getMachineID();
|
||||||
g_abs_controls[id.getType()][id.getNum()] = cntrl;
|
g_abs_controls[id.getType()][id.getNum()] = cntrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
RubySystem::~RubySystem()
|
RubySystem::~RubySystem()
|
||||||
|
@ -189,7 +189,7 @@ RubySystem::serializeOld(CheckpointOut &cp)
|
||||||
// Restore curTick
|
// Restore curTick
|
||||||
setCurTick(curtick_original);
|
setCurTick(curtick_original);
|
||||||
|
|
||||||
// Aggergate the trace entries together into a single array
|
// Aggregate the trace entries together into a single array
|
||||||
uint8_t *raw_data = new uint8_t[4096];
|
uint8_t *raw_data = new uint8_t[4096];
|
||||||
uint64 cache_trace_size = m_cache_recorder->aggregateRecords(&raw_data,
|
uint64 cache_trace_size = m_cache_recorder->aggregateRecords(&raw_data,
|
||||||
4096);
|
4096);
|
||||||
|
|
Loading…
Reference in a new issue