tlb.cc (8888:befcf4d79fc1) tlb.cc (9738:304a37519d11)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

341
342Fault
343TLB::translateFunctional(RequestPtr req, ThreadContext *tc, Mode mode)
344{
345 panic("Not implemented\n");
346 return NoFault;
347}
348
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

341
342Fault
343TLB::translateFunctional(RequestPtr req, ThreadContext *tc, Mode mode)
344{
345 panic("Not implemented\n");
346 return NoFault;
347}
348
349Fault
350TLB::finalizePhysical(RequestPtr req, ThreadContext *tc, Mode mode) const
351{
352 return NoFault;
353}
349
354
355
350MipsISA::PTE &
351TLB::index(bool advance)
352{
353 PTE *pte = &table[nlu];
354
355 if (advance)
356 nextnlu();
357
358 return *pte;
359}
360
361MipsISA::TLB *
362MipsTLBParams::create()
363{
364 return new TLB(this);
365}
356MipsISA::PTE &
357TLB::index(bool advance)
358{
359 PTE *pte = &table[nlu];
360
361 if (advance)
362 nextnlu();
363
364 return *pte;
365}
366
367MipsISA::TLB *
368MipsTLBParams::create()
369{
370 return new TLB(this);
371}