memtest.hh (8436:5648986156db) memtest.hh (8711:c7e14f52c682)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

88 MemTest *memtest;
89
90 public:
91
92 CpuPort(const std::string &_name, MemTest *_memtest)
93 : Port(_name, _memtest), memtest(_memtest)
94 { }
95
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

88 MemTest *memtest;
89
90 public:
91
92 CpuPort(const std::string &_name, MemTest *_memtest)
93 : Port(_name, _memtest), memtest(_memtest)
94 { }
95
96 bool snoopRangeSent;
97
98 protected:
99
100 virtual bool recvTiming(PacketPtr pkt);
101
102 virtual Tick recvAtomic(PacketPtr pkt);
103
104 virtual void recvFunctional(PacketPtr pkt);
105
96 protected:
97
98 virtual bool recvTiming(PacketPtr pkt);
99
100 virtual Tick recvAtomic(PacketPtr pkt);
101
102 virtual void recvFunctional(PacketPtr pkt);
103
106 virtual void recvStatusChange(Status status);
104 virtual void recvRangeChange();
107
108 virtual void recvRetry();
105
106 virtual void recvRetry();
109
110 virtual void getDeviceAddressRanges(AddrRangeList &resp,
111 bool &snoop)
112 { resp.clear(); snoop = false; }
113 };
114
115 CpuPort cachePort;
116 CpuPort funcPort;
117
107 };
108
109 CpuPort cachePort;
110 CpuPort funcPort;
111
118 bool snoopRangeSent;
119
120 class MemTestSenderState : public Packet::SenderState, public FastAlloc
121 {
122 public:
123 /** Constructor. */
124 MemTestSenderState(uint8_t *_data)
125 : data(_data)
126 { }
127

--- 73 unchanged lines hidden ---
112 class MemTestSenderState : public Packet::SenderState, public FastAlloc
113 {
114 public:
115 /** Constructor. */
116 MemTestSenderState(uint8_t *_data)
117 : data(_data)
118 { }
119

--- 73 unchanged lines hidden ---