tlb.hh (5358:e9acb84bbafb) tlb.hh (5555:07c10d7dd62d)
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;

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

104 };
105 public:
106 /** lookup an entry in the TLB based on the partition id, and real bit if
107 * real is true or the partition id, and context id if real is false.
108 * @param va the virtual address not shifted (e.g. bottom 13 bits are 0)
109 * @param paritition_id partition this entry is for
110 * @param real is this a real->phys or virt->phys translation
111 * @param context_id if this is virt->phys what context
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;

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

104 };
105 public:
106 /** lookup an entry in the TLB based on the partition id, and real bit if
107 * real is true or the partition id, and context id if real is false.
108 * @param va the virtual address not shifted (e.g. bottom 13 bits are 0)
109 * @param paritition_id partition this entry is for
110 * @param real is this a real->phys or virt->phys translation
111 * @param context_id if this is virt->phys what context
112 * @param update_used should ew update the used bits in the entries on not
113 * useful if we are trying to do a va->pa without mucking with any state for
114 * a debug read for example.
112 * @param update_used should ew update the used bits in the
113 * entries on not useful if we are trying to do a va->pa without
114 * mucking with any state for a debug read for example.
115 * @return A pointer to a tlb entry
116 */
117 TlbEntry *lookup(Addr va, int partition_id, bool real, int context_id = 0,
118 bool update_used = true);
119 protected:
120 /** Insert a PTE into the TLB. */
121 void insert(Addr vpn, int partition_id, int context_id, bool real,
122 const PageTableEntry& PTE, int entry = -1);

--- 105 unchanged lines hidden ---
115 * @return A pointer to a tlb entry
116 */
117 TlbEntry *lookup(Addr va, int partition_id, bool real, int context_id = 0,
118 bool update_used = true);
119 protected:
120 /** Insert a PTE into the TLB. */
121 void insert(Addr vpn, int partition_id, int context_id, bool real,
122 const PageTableEntry& PTE, int entry = -1);

--- 105 unchanged lines hidden ---