diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:23 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:23 -0800 |
commit | 45230a4f6b82af61c05fcf93b6e1a9319fcb0a2e (patch) | |
tree | be5514d8ae75df903599758fa2fa86834e9142b1 /src/mem/ruby/system/RubyPort.cc | |
parent | 4eb3bfc31b66a6835a398ba2f0a11ea9b78d525d (diff) | |
download | gem5-45230a4f6b82af61c05fcf93b6e1a9319fcb0a2e.tar.xz |
ruby: added the GEMS ruby tester
Diffstat (limited to 'src/mem/ruby/system/RubyPort.cc')
-rw-r--r-- | src/mem/ruby/system/RubyPort.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mem/ruby/system/RubyPort.cc b/src/mem/ruby/system/RubyPort.cc index 692c9ea81..e4742dbab 100644 --- a/src/mem/ruby/system/RubyPort.cc +++ b/src/mem/ruby/system/RubyPort.cc @@ -30,6 +30,7 @@ #include "mem/physical.hh" #include "mem/ruby/system/RubyPort.hh" #include "mem/ruby/slicc_interface/AbstractController.hh" +#include "cpu/rubytest/RubyTester.hh" uint16_t RubyPort::m_num_ports = 0; @@ -205,11 +206,18 @@ RubyPort::M5Port::recvTiming(PacketPtr pkt) // sending them to our assigned ruby port. // RubyRequestType type = RubyRequestType_NULL; + + // + // If valid, copy the pc to the ruby request + // Addr pc = 0; + if (pkt->req->hasPC()) { + pc = pkt->req->getPC(); + } + if (pkt->isRead()) { if (pkt->req->isInstFetch()) { type = RubyRequestType_IFETCH; - pc = pkt->req->getPC(); } else { type = RubyRequestType_LD; } |