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;
--- 163 unchanged lines hidden (view full) ---
172{
173 public:
174 typedef SparcITBParams Params;
175 ITB(const Params *p) : TLB(p)
176 {
177 cacheEntry = NULL;
178 }
179
180 Fault translateAtomic(RequestPtr req, ThreadContext *tc);
181 void translateTiming(RequestPtr req, ThreadContext *tc,
182 Translation *translation);
183 private:
184 void writeSfsr(bool write, ContextType ct,
185 bool se, FaultTypes ft, int asi);
186 TlbEntry *cacheEntry;
187 friend class DTB;
188};
189
190class DTB : public TLB
--- 5 unchanged lines hidden (view full) ---
196 typedef SparcDTBParams Params;
197 DTB(const Params *p) : TLB(p)
198 {
199 sfar = 0;
200 cacheEntry[0] = NULL;
201 cacheEntry[1] = NULL;
202 }
203
204 Fault translateAtomic(RequestPtr req,
205 ThreadContext *tc, bool write=false);
206 void translateTiming(RequestPtr req, ThreadContext *tc,
207 Translation *translation, bool write=false);
208#if FULL_SYSTEM
209 Tick doMmuRegRead(ThreadContext *tc, Packet *pkt);
210 Tick doMmuRegWrite(ThreadContext *tc, Packet *pkt);
211#endif
212 void GetTsbPtr(ThreadContext *tc, Addr addr, int ctx, Addr *ptrs);
213
214 // Checkpointing
215 virtual void serialize(std::ostream &os);
--- 17 unchanged lines hidden ---
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;
--- 163 unchanged lines hidden (view full) ---
172{
173 public:
174 typedef SparcITBParams Params;
175 ITB(const Params *p) : TLB(p)
176 {
177 cacheEntry = NULL;
178 }
179
180 Fault translateAtomic(RequestPtr req, ThreadContext *tc);
181 void translateTiming(RequestPtr req, ThreadContext *tc,
182 Translation *translation);
183 private:
184 void writeSfsr(bool write, ContextType ct,
185 bool se, FaultTypes ft, int asi);
186 TlbEntry *cacheEntry;
187 friend class DTB;
188};
189
190class DTB : public TLB
--- 5 unchanged lines hidden (view full) ---
196 typedef SparcDTBParams Params;
197 DTB(const Params *p) : TLB(p)
198 {
199 sfar = 0;
200 cacheEntry[0] = NULL;
201 cacheEntry[1] = NULL;
202 }
203
204 Fault translateAtomic(RequestPtr req,
205 ThreadContext *tc, bool write=false);
206 void translateTiming(RequestPtr req, ThreadContext *tc,
207 Translation *translation, bool write=false);
208#if FULL_SYSTEM
209 Tick doMmuRegRead(ThreadContext *tc, Packet *pkt);
210 Tick doMmuRegWrite(ThreadContext *tc, Packet *pkt);
211#endif
212 void GetTsbPtr(ThreadContext *tc, Addr addr, int ctx, Addr *ptrs);
213
214 // Checkpointing
215 virtual void serialize(std::ostream &os);
--- 17 unchanged lines hidden ---