tlb.cc (5268:5bfc53fe60e7) tlb.cc (5358:e9acb84bbafb)
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

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

57///////////////////////////////////////////////////////////////////////
58//
59// MIPS TLB
60//
61
62#define MODE2MASK(X) (1 << (X))
63
64TLB::TLB(const Params *p)
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

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

57///////////////////////////////////////////////////////////////////////
58//
59// MIPS TLB
60//
61
62#define MODE2MASK(X) (1 << (X))
63
64TLB::TLB(const Params *p)
65 : SimObject(p), size(p->size), nlu(0)
65 : BaseTLB(p), size(p->size), nlu(0)
66{
67 table = new MipsISA::PTE[size];
68 memset(table, 0, sizeof(MipsISA::PTE[size]));
69 smallPages=0;
70}
71
72TLB::~TLB()
73{

--- 569 unchanged lines hidden ---
66{
67 table = new MipsISA::PTE[size];
68 memset(table, 0, sizeof(MipsISA::PTE[size]));
69 smallPages=0;
70}
71
72TLB::~TLB()
73{

--- 569 unchanged lines hidden ---