tlb.hh (11168:f98eb2da15a4) tlb.hh (11341:bda2c39fd9fd)
1/*
2 * Copyright (c) 2006 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;

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

110 * entries on not useful if we are trying to do a va->pa without
111 * mucking with any state for a debug read for example.
112 * @return A pointer to a tlb entry
113 */
114 TlbEntry *lookup(Addr va, int partition_id, bool real, int context_id = 0,
115 bool update_used = true);
116
117 /** Remove all entries from the TLB */
1/*
2 * Copyright (c) 2006 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;

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

110 * entries on not useful if we are trying to do a va->pa without
111 * mucking with any state for a debug read for example.
112 * @return A pointer to a tlb entry
113 */
114 TlbEntry *lookup(Addr va, int partition_id, bool real, int context_id = 0,
115 bool update_used = true);
116
117 /** Remove all entries from the TLB */
118 void flushAll();
118 void flushAll() override;
119
120 protected:
121 /** Insert a PTE into the TLB. */
122 void insert(Addr vpn, int partition_id, int context_id, bool real,
123 const PageTableEntry& PTE, int entry = -1);
124
125 /** Given an entry id, read that tlb entries' tag. */
126 uint64_t TagRead(int entry);

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

148
149 Fault translateInst(RequestPtr req, ThreadContext *tc);
150 Fault translateData(RequestPtr req, ThreadContext *tc, bool write);
151
152 public:
153 typedef SparcTLBParams Params;
154 TLB(const Params *p);
155
119
120 protected:
121 /** Insert a PTE into the TLB. */
122 void insert(Addr vpn, int partition_id, int context_id, bool real,
123 const PageTableEntry& PTE, int entry = -1);
124
125 /** Given an entry id, read that tlb entries' tag. */
126 uint64_t TagRead(int entry);

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

148
149 Fault translateInst(RequestPtr req, ThreadContext *tc);
150 Fault translateData(RequestPtr req, ThreadContext *tc, bool write);
151
152 public:
153 typedef SparcTLBParams Params;
154 TLB(const Params *p);
155
156 void takeOverFrom(BaseTLB *otlb) {}
156 void takeOverFrom(BaseTLB *otlb) override {}
157
158 void
157
158 void
159 demapPage(Addr vaddr, uint64_t asn)
159 demapPage(Addr vaddr, uint64_t asn) override
160 {
161 panic("demapPage(Addr) is not implemented.\n");
162 }
163
164 void dumpAll();
165
166 Fault translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode);
167 void translateTiming(RequestPtr req, ThreadContext *tc,

--- 32 unchanged lines hidden ---
160 {
161 panic("demapPage(Addr) is not implemented.\n");
162 }
163
164 void dumpAll();
165
166 Fault translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode);
167 void translateTiming(RequestPtr req, ThreadContext *tc,

--- 32 unchanged lines hidden ---