Ruby: Initialize some variables.
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 15 Aug 2011 17:56:47 +0000 (12:56 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 15 Aug 2011 17:56:47 +0000 (12:56 -0500)
src/mem/ruby/system/RubyPort.cc
src/mem/ruby/system/Sequencer.cc

index 662f971f217678878ad03005a9a0027ae5895fe5..179b0f4a19406a546b31835e67db3b0b5465502b 100644 (file)
@@ -56,6 +56,7 @@ RubyPort::RubyPort(const Params *p)
     access_phys_mem = p->access_phys_mem;
 
     ruby_system = p->ruby_system;
+    waitingOnSequencer = false;
 }
 
 void
index dcee571467a77a3217c798a30a18e9ac043e545d..ceed068e85091fe1eb4edf75ee6500b981e525e6 100644 (file)
@@ -616,7 +616,7 @@ Sequencer::issueRequest(const RubyRequest& request)
 {
     // TODO: Eliminate RubyRequest being copied again.
 
-    RubyRequestType ctype;
+    RubyRequestType ctype = RubyRequestType_NUM;
     switch(request.m_Type) {
       case RubyRequestType_IFETCH:
         ctype = RubyRequestType_IFETCH;
@@ -657,7 +657,7 @@ Sequencer::issueRequest(const RubyRequest& request)
         assert(0);
     }
 
-    RubyAccessMode amtype;
+    RubyAccessMode amtype = RubyAccessMode_NUM;
     switch(request.m_AccessMode){
       case RubyAccessMode_User:
         amtype = RubyAccessMode_User;