RubyTester.hh (8950:a6830d615eff) RubyTester.hh (8965:1ebd7c856abc)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009 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

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

52
53 public:
54 //
55 // Currently, each instatiation of the RubyTester::CpuPort supports
56 // only instruction or data requests, not both. However, for those
57 // RubyPorts that support both types of requests, separate InstOnly
58 // and DataOnly CpuPorts will map to that RubyPort
59
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * Copyright (c) 2009 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

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

52
53 public:
54 //
55 // Currently, each instatiation of the RubyTester::CpuPort supports
56 // only instruction or data requests, not both. However, for those
57 // RubyPorts that support both types of requests, separate InstOnly
58 // and DataOnly CpuPorts will map to that RubyPort
59
60 CpuPort(const std::string &_name, RubyTester *_tester, int _idx)
61 : MasterPort(_name, _tester), tester(_tester), idx(_idx)
60 CpuPort(const std::string &_name, RubyTester *_tester, PortId _id)
61 : MasterPort(_name, _tester, _id), tester(_tester)
62 {}
63
62 {}
63
64 int idx;
65
66 protected:
67 virtual bool recvTiming(PacketPtr pkt);
68 virtual void recvRetry()
69 { panic("%s does not expect a retry\n", name()); }
70 };
71
72 struct SenderState : public Packet::SenderState
73 {

--- 94 unchanged lines hidden ---
64 protected:
65 virtual bool recvTiming(PacketPtr pkt);
66 virtual void recvRetry()
67 { panic("%s does not expect a retry\n", name()); }
68 };
69
70 struct SenderState : public Packet::SenderState
71 {

--- 94 unchanged lines hidden ---