summaryrefslogtreecommitdiff
path: root/src/cpu/testers/rubytest
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-02-24 11:48:48 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2012-02-24 11:48:48 -0500
commit86c2aad482df4bf56977bf1a098d2dd01c641bfd (patch)
tree9dffc6f5954b577a145f2946ca675ebc8a1f266d /src/cpu/testers/rubytest
parent485d103255c0f64ebf697650c899fe7a80db1d6d (diff)
downloadgem5-86c2aad482df4bf56977bf1a098d2dd01c641bfd.tar.xz
Ruby: Simplify tester ports by not using SimpleTimingPort
This patch simplfies the master ports used by RubyDirectedTester and RubyTester by avoiding the use of SimpleTimingPort. Neither tester made any use of the functionality offered by SimpleTimingPort besides a trivial implementation of recvFunctional (only snoops) and recvRangeChange (not relevant since there is only one master). The patch does not change or add any functionality, it merely makes the introduction of a master/slave port easier (in a future patch).
Diffstat (limited to 'src/cpu/testers/rubytest')
-rw-r--r--src/cpu/testers/rubytest/RubyTester.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/testers/rubytest/RubyTester.hh b/src/cpu/testers/rubytest/RubyTester.hh
index fae40a417..e8cf4c874 100644
--- a/src/cpu/testers/rubytest/RubyTester.hh
+++ b/src/cpu/testers/rubytest/RubyTester.hh
@@ -45,14 +45,14 @@
class RubyTester : public MemObject
{
public:
- class CpuPort : public SimpleTimingPort
+ class CpuPort : public Port
{
private:
RubyTester *tester;
public:
CpuPort(const std::string &_name, RubyTester *_tester, int _idx)
- : SimpleTimingPort(_name, _tester), tester(_tester), idx(_idx)
+ : Port(_name, _tester), tester(_tester), idx(_idx)
{}
int idx;
@@ -60,6 +60,8 @@ class RubyTester : public MemObject
protected:
virtual bool recvTiming(PacketPtr pkt);
virtual Tick recvAtomic(PacketPtr pkt);
+ virtual void recvFunctional(PacketPtr pkt) { }
+ virtual void recvRangeChange() { }
};
struct SenderState : public Packet::SenderState