summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-08-15 12:56:47 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-08-15 12:56:47 -0500
commit769c1844f0c52843f10289deb001b914628904d1 (patch)
tree7da00f965e33812b2b11e00c8774a64d848d5cb0 /src
parentcbf79820819bbd1dbd4b0e9ff13b9ff196e125ab (diff)
downloadgem5-769c1844f0c52843f10289deb001b914628904d1.tar.xz
Ruby: Initialize some variables.
Diffstat (limited to 'src')
-rw-r--r--src/mem/ruby/system/RubyPort.cc1
-rw-r--r--src/mem/ruby/system/Sequencer.cc4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/ruby/system/RubyPort.cc b/src/mem/ruby/system/RubyPort.cc
index 662f971f2..179b0f4a1 100644
--- a/src/mem/ruby/system/RubyPort.cc
+++ b/src/mem/ruby/system/RubyPort.cc
@@ -56,6 +56,7 @@ RubyPort::RubyPort(const Params *p)
access_phys_mem = p->access_phys_mem;
ruby_system = p->ruby_system;
+ waitingOnSequencer = false;
}
void
diff --git a/src/mem/ruby/system/Sequencer.cc b/src/mem/ruby/system/Sequencer.cc
index dcee57146..ceed068e8 100644
--- a/src/mem/ruby/system/Sequencer.cc
+++ b/src/mem/ruby/system/Sequencer.cc
@@ -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;