RubyDirectedTester.hh (8655:e4001326a5ba) RubyDirectedTester.hh (8854:04d1736a5098)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 33 unchanged lines hidden (view full) ---

42#include "mem/packet.hh"
43#include "params/RubyDirectedTester.hh"
44
45class DirectedGenerator;
46
47class RubyDirectedTester : public MemObject
48{
49 public:
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009-2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 33 unchanged lines hidden (view full) ---

42#include "mem/packet.hh"
43#include "params/RubyDirectedTester.hh"
44
45class DirectedGenerator;
46
47class RubyDirectedTester : public MemObject
48{
49 public:
50 class CpuPort : public SimpleTimingPort
50 class CpuPort : public Port
51 {
52 private:
53 RubyDirectedTester *tester;
54
55 public:
51 {
52 private:
53 RubyDirectedTester *tester;
54
55 public:
56 CpuPort(const std::string &_name, RubyDirectedTester *_tester, uint32_t _idx)
57 : SimpleTimingPort(_name, _tester), tester(_tester), idx(_idx)
56 CpuPort(const std::string &_name, RubyDirectedTester *_tester,
57 uint32_t _idx)
58 : Port(_name, _tester), tester(_tester), idx(_idx)
58 {}
59
60 uint32_t idx;
61
62 protected:
63 virtual bool recvTiming(PacketPtr pkt);
64 virtual Tick recvAtomic(PacketPtr pkt);
59 {}
60
61 uint32_t idx;
62
63 protected:
64 virtual bool recvTiming(PacketPtr pkt);
65 virtual Tick recvAtomic(PacketPtr pkt);
66 virtual void recvFunctional(PacketPtr pkt) { }
67 virtual void recvRangeChange() { }
65 };
66
67 typedef RubyDirectedTesterParams Params;
68 RubyDirectedTester(const Params *p);
69 ~RubyDirectedTester();
70
71 virtual Port *getPort(const std::string &if_name, int idx = -1);
72

--- 46 unchanged lines hidden ---
68 };
69
70 typedef RubyDirectedTesterParams Params;
71 RubyDirectedTester(const Params *p);
72 ~RubyDirectedTester();
73
74 virtual Port *getPort(const std::string &if_name, int idx = -1);
75

--- 46 unchanged lines hidden ---