tlb.hh (7733:08d6a773d1b6) tlb.hh (7734:85a8198aa2ff)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

97 * @param vpn virtual address
98 * @param asn context id/address space id to use
99 * @param functional if the lookup should modify state
100 * @return pointer to TLB entrry if it exists
101 */
102 TlbEntry *lookup(Addr vpn, uint8_t asn, bool functional = false);
103
104 // Access Stats
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

97 * @param vpn virtual address
98 * @param asn context id/address space id to use
99 * @param functional if the lookup should modify state
100 * @return pointer to TLB entrry if it exists
101 */
102 TlbEntry *lookup(Addr vpn, uint8_t asn, bool functional = false);
103
104 // Access Stats
105 mutable Stats::Scalar read_hits;
106 mutable Stats::Scalar read_misses;
107 mutable Stats::Scalar read_acv;
108 mutable Stats::Scalar read_accesses;
109 mutable Stats::Scalar write_hits;
110 mutable Stats::Scalar write_misses;
111 mutable Stats::Scalar write_acv;
112 mutable Stats::Scalar write_accesses;
105 mutable Stats::Scalar instHits;
106 mutable Stats::Scalar instMisses;
107 mutable Stats::Scalar readHits;
108 mutable Stats::Scalar readMisses;
109 mutable Stats::Scalar writeHits;
110 mutable Stats::Scalar writeMisses;
111 mutable Stats::Scalar inserts;
112 mutable Stats::Scalar flushTlb;
113 mutable Stats::Scalar flushTlbMva;
114 mutable Stats::Scalar flushTlbMvaAsid;
115 mutable Stats::Scalar flushTlbAsid;
116 mutable Stats::Scalar flushedEntries;
117 mutable Stats::Scalar alignFaults;
118 mutable Stats::Scalar prefetchFaults;
119 mutable Stats::Scalar domainFaults;
120 mutable Stats::Scalar permsFaults;
121
122 Stats::Formula readAccesses;
123 Stats::Formula writeAccesses;
124 Stats::Formula instAccesses;
113 Stats::Formula hits;
114 Stats::Formula misses;
115 Stats::Formula accesses;
116
117 int rangeMRU; //On lookup, only move entries ahead when outside rangeMRU
118
119 public:
120 typedef ArmTLBParams Params;

--- 83 unchanged lines hidden ---
125 Stats::Formula hits;
126 Stats::Formula misses;
127 Stats::Formula accesses;
128
129 int rangeMRU; //On lookup, only move entries ahead when outside rangeMRU
130
131 public:
132 typedef ArmTLBParams Params;

--- 83 unchanged lines hidden ---