Deleted Added
sdiff udiff text old ( 8733:64a7bf8fa56c ) new ( 8756:cce8cf3906ca )
full compact
1/*
2 * Copyright (c) 2010 ARM Limited
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

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

84 };
85 protected:
86
87 TlbEntry *table; // the Page Table
88 int size; // TLB Size
89
90 uint32_t _attr; // Memory attributes for last accessed TLB entry
91
92 TableWalker *tableWalker;
93
94 /** Lookup an entry in the TLB
95 * @param vpn virtual address
96 * @param asn context id/address space id to use
97 * @param functional if the lookup should modify state
98 * @return pointer to TLB entrry if it exists
99 */
100 TlbEntry *lookup(Addr vpn, uint8_t asn, bool functional = false);

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

175 * and don't modify any internal state
176 * @param tc thread context to get the context id from
177 * @param vaddr virtual address to translate
178 * @param pa returned physical address
179 * @return if the translation was successful
180 */
181 bool translateFunctional(ThreadContext *tc, Addr vaddr, Addr &paddr);
182
183 /** Accessor functions for memory attributes for last accessed TLB entry
184 */
185 void
186 setAttr(uint32_t attr)
187 {
188 _attr = attr;
189 }
190 uint32_t
191 getAttr() const
192 {
193 return _attr;
194 }
195
196 Fault translateFs(RequestPtr req, ThreadContext *tc, Mode mode,
197 Translation *translation, bool &delay, bool timing);
198 Fault translateSe(RequestPtr req, ThreadContext *tc, Mode mode,
199 Translation *translation, bool &delay, bool timing);
200 Fault translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode);
201 Fault translateTiming(RequestPtr req, ThreadContext *tc,
202 Translation *translation, Mode mode);
203
204 // Checkpointing
205 void serialize(std::ostream &os);
206 void unserialize(Checkpoint *cp, const std::string &section);
207

--- 40 unchanged lines hidden ---