pagetable_walker.hh (10820:e2a283400c43) | pagetable_walker.hh (12088:ffd7952e9929) |
---|---|
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 --- 164 unchanged lines hidden (view full) --- 173 unsigned numSquashable; 174 175 // Wrapper for checking for squashes before starting a translation. 176 void startWalkWrapper(); 177 178 /** 179 * Event used to call startWalkWrapper. 180 **/ | 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 --- 164 unchanged lines hidden (view full) --- 173 unsigned numSquashable; 174 175 // Wrapper for checking for squashes before starting a translation. 176 void startWalkWrapper(); 177 178 /** 179 * Event used to call startWalkWrapper. 180 **/ |
181 EventWrapper<Walker, &Walker::startWalkWrapper> startWalkWrapperEvent; | 181 EventFunctionWrapper startWalkWrapperEvent; |
182 183 // Functions for dealing with packets. 184 bool recvTimingResp(PacketPtr pkt); 185 void recvReqRetry(); 186 bool sendTiming(WalkerState * sendingState, PacketPtr pkt); 187 188 public: 189 --- 10 unchanged lines hidden (view full) --- 200 return static_cast<const Params *>(_params); 201 } 202 203 Walker(const Params *params) : 204 MemObject(params), port(name() + ".port", this), 205 funcState(this, NULL, NULL, true), tlb(NULL), sys(params->system), 206 masterId(sys->getMasterId(name())), 207 numSquashable(params->num_squash_per_cycle), | 182 183 // Functions for dealing with packets. 184 bool recvTimingResp(PacketPtr pkt); 185 void recvReqRetry(); 186 bool sendTiming(WalkerState * sendingState, PacketPtr pkt); 187 188 public: 189 --- 10 unchanged lines hidden (view full) --- 200 return static_cast<const Params *>(_params); 201 } 202 203 Walker(const Params *params) : 204 MemObject(params), port(name() + ".port", this), 205 funcState(this, NULL, NULL, true), tlb(NULL), sys(params->system), 206 masterId(sys->getMasterId(name())), 207 numSquashable(params->num_squash_per_cycle), |
208 startWalkWrapperEvent(this) | 208 startWalkWrapperEvent([this]{ startWalkWrapper(); }, name()) |
209 { 210 } 211 }; 212} 213#endif // __ARCH_X86_PAGE_TABLE_WALKER_HH__ | 209 { 210 } 211 }; 212} 213#endif // __ARCH_X86_PAGE_TABLE_WALKER_HH__ |