pagetable_walker.hh (12680:91f4d6668b4f) pagetable_walker.hh (12749:223c83ed9979)
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

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

108 TLB::Translation * translation;
109 BaseTLB::Mode mode;
110 bool functional;
111 bool timing;
112 bool retrying;
113 bool started;
114 public:
115 WalkerState(Walker * _walker, BaseTLB::Translation *_translation,
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

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

108 TLB::Translation * translation;
109 BaseTLB::Mode mode;
110 bool functional;
111 bool timing;
112 bool retrying;
113 bool started;
114 public:
115 WalkerState(Walker * _walker, BaseTLB::Translation *_translation,
116 RequestPtr _req, bool _isFunctional = false) :
117 walker(_walker), req(_req), state(Ready),
118 nextState(Ready), inflight(0),
119 translation(_translation),
120 functional(_isFunctional), timing(false),
121 retrying(false), started(false)
116 const RequestPtr &_req, bool _isFunctional = false) :
117 walker(_walker), req(_req), state(Ready),
118 nextState(Ready), inflight(0),
119 translation(_translation),
120 functional(_isFunctional), timing(false),
121 retrying(false), started(false)
122 {
123 }
124 void initState(ThreadContext * _tc, BaseTLB::Mode _mode,
125 bool _isTiming = false);
126 Fault startWalk();
127 Fault startFunctional(Addr &addr, unsigned &logBytes);
128 bool recvPacket(PacketPtr pkt);
129 bool isRetrying();

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

152 WalkerState * senderWalk;
153 WalkerSenderState(WalkerState * _senderWalk) :
154 senderWalk(_senderWalk) {}
155 };
156
157 public:
158 // Kick off the state machine.
159 Fault start(ThreadContext * _tc, BaseTLB::Translation *translation,
122 {
123 }
124 void initState(ThreadContext * _tc, BaseTLB::Mode _mode,
125 bool _isTiming = false);
126 Fault startWalk();
127 Fault startFunctional(Addr &addr, unsigned &logBytes);
128 bool recvPacket(PacketPtr pkt);
129 bool isRetrying();

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

152 WalkerState * senderWalk;
153 WalkerSenderState(WalkerState * _senderWalk) :
154 senderWalk(_senderWalk) {}
155 };
156
157 public:
158 // Kick off the state machine.
159 Fault start(ThreadContext * _tc, BaseTLB::Translation *translation,
160 RequestPtr req, BaseTLB::Mode mode);
160 const RequestPtr &req, BaseTLB::Mode mode);
161 Fault startFunctional(ThreadContext * _tc, Addr &addr,
162 unsigned &logBytes, BaseTLB::Mode mode);
163 BaseMasterPort &getMasterPort(const std::string &if_name,
164 PortID idx = InvalidPortID);
165
166 protected:
167 // The TLB we're supposed to load.
168 TLB * tlb;

--- 45 unchanged lines hidden ---
161 Fault startFunctional(ThreadContext * _tc, Addr &addr,
162 unsigned &logBytes, BaseTLB::Mode mode);
163 BaseMasterPort &getMasterPort(const std::string &if_name,
164 PortID idx = InvalidPortID);
165
166 protected:
167 // The TLB we're supposed to load.
168 TLB * tlb;

--- 45 unchanged lines hidden ---