pagetable_walker.hh (9701:f02f3b6562d5) pagetable_walker.hh (10654:e49bf4884c59)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

178 MasterID masterId;
179
180 // The number of outstanding walks that can be squashed per cycle.
181 unsigned numSquashable;
182
183 // Wrapper for checking for squashes before starting a translation.
184 void startWalkWrapper();
185
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

178 MasterID masterId;
179
180 // The number of outstanding walks that can be squashed per cycle.
181 unsigned numSquashable;
182
183 // Wrapper for checking for squashes before starting a translation.
184 void startWalkWrapper();
185
186 /**
187 * Event used to call startWalkWrapper.
188 **/
189 EventWrapper<Walker, &Walker::startWalkWrapper> startWalkWrapperEvent;
190
186 // Functions for dealing with packets.
187 bool recvTimingResp(PacketPtr pkt);
188 void recvRetry();
189 bool sendTiming(WalkerState * sendingState, PacketPtr pkt);
190
191 public:
192
193 void setTLB(TLB * _tlb)

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

202 {
203 return static_cast<const Params *>(_params);
204 }
205
206 Walker(const Params *params) :
207 MemObject(params), port(name() + ".port", this),
208 funcState(this, NULL, NULL, true), tlb(NULL), sys(params->system),
209 masterId(sys->getMasterId(name())),
191 // Functions for dealing with packets.
192 bool recvTimingResp(PacketPtr pkt);
193 void recvRetry();
194 bool sendTiming(WalkerState * sendingState, PacketPtr pkt);
195
196 public:
197
198 void setTLB(TLB * _tlb)

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

207 {
208 return static_cast<const Params *>(_params);
209 }
210
211 Walker(const Params *params) :
212 MemObject(params), port(name() + ".port", this),
213 funcState(this, NULL, NULL, true), tlb(NULL), sys(params->system),
214 masterId(sys->getMasterId(name())),
210 numSquashable(params->num_squash_per_cycle)
215 numSquashable(params->num_squash_per_cycle),
216 startWalkWrapperEvent(this)
211 {
212 }
213 };
214}
215#endif // __ARCH_X86_PAGE_TABLE_WALKER_HH__
217 {
218 }
219 };
220}
221#endif // __ARCH_X86_PAGE_TABLE_WALKER_HH__