Skip to content

Commit

Permalink
Fix init warnings, remove echo from makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dramninjasUMD committed May 15, 2012
1 parent d387773 commit bbc1ca6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Bank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ using namespace std;
using namespace DRAMSim;

Bank::Bank(ostream &dramsim_log_):
rowEntries(NUM_COLS),
currentState(dramsim_log_),
rowEntries(NUM_COLS),
dramsim_log(dramsim_log_)
{}

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(LIB_NAME_MACOS): $(POBJ)
@$(CXX) -M $(CXXFLAGS) $< > $@

%.deppo : %.cpp
$(CXX) -M $(CXXFLAGS) -MT"$*.po" $< > $@
@$(CXX) -M $(CXXFLAGS) -MT"$*.po" $< > $@

# build all .cpp files to .o files
%.o : %.cpp
Expand Down
12 changes: 6 additions & 6 deletions Rank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ using namespace std;
using namespace DRAMSim;

Rank::Rank(ostream &dramsim_log_) :
id(-1),
dramsim_log(dramsim_log_),
isPowerDown(false),
refreshWaiting(false),
readReturnCountdown(0),
banks(NUM_BANKS, Bank(dramsim_log_)),
bankStates(NUM_BANKS, BankState(dramsim_log_)),
// store the rank #, mostly for convenience and printing
id(-1),
isPowerDown(false),
refreshWaiting(false),
readReturnCountdown(0)
bankStates(NUM_BANKS, BankState(dramsim_log_))

{

memoryController = NULL;
Expand Down
5 changes: 3 additions & 2 deletions Rank.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class MemoryController; //forward declaration
class Rank : public SimulatorObject
{
private:
ostream &dramsim_log;
int id;
ostream &dramsim_log;
unsigned incomingWriteBank;
unsigned incomingWriteRow;
unsigned incomingWriteColumn;
Expand All @@ -68,7 +68,6 @@ class Rank : public SimulatorObject
void powerDown();

//fields
vector<Bank> banks;
MemoryController *memoryController;
BusPacket *outgoingDataPacket;
unsigned dataCyclesLeft;
Expand All @@ -77,7 +76,9 @@ class Rank : public SimulatorObject
//these are vectors so that each element is per-bank
vector<BusPacket *> readReturnPacket;
vector<unsigned> readReturnCountdown;
vector<Bank> banks;
vector<BankState> bankStates;

};
}
#endif
Expand Down

0 comments on commit bbc1ca6

Please sign in to comment.