tlb.hh (6116:a5a97b04d796) tlb.hh (7294:fda2c00880db)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * Copyright (c) 2007-2008 The Florida State University
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

81 {
82 UNSERIALIZE_SCALAR(_pageStart);
83 }
84
85};
86
87class TLB : public BaseTLB
88{
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * Copyright (c) 2007-2008 The Florida State University
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

81 {
82 UNSERIALIZE_SCALAR(_pageStart);
83 }
84
85};
86
87class TLB : public BaseTLB
88{
89 public:
90 enum ArmFlags {
91 AlignmentMask = 0x7,
92
93 AlignByte = 0x0,
94 AlignHalfWord = 0x1,
95 AlignWord = 0x3,
96 AlignDoubleWord = 0x7,
97
98 AllowUnaligned = 0x8,
99 // Because zero otherwise looks like a valid setting and may be used
100 // accidentally, this bit must be non-zero to show it was used on
101 // purpose.
102 MustBeOne = 0x10
103 };
89 protected:
90 typedef std::multimap<Addr, int> PageTable;
91 PageTable lookupTable; // Quick lookup into page table
92
93 ArmISA::PTE *table; // the Page Table
94 int size; // TLB Size
95 int nlu; // not last used entry (for replacement)
96

--- 54 unchanged lines hidden ---
104 protected:
105 typedef std::multimap<Addr, int> PageTable;
106 PageTable lookupTable; // Quick lookup into page table
107
108 ArmISA::PTE *table; // the Page Table
109 int size; // TLB Size
110 int nlu; // not last used entry (for replacement)
111

--- 54 unchanged lines hidden ---