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 --- 61 unchanged lines hidden (view full) --- 70TLB::TLB(const Params *p) 71 : BaseTLB(p), size(p->size) 72#if FULL_SYSTEM 73 , tableWalker(p->walker) 74#endif 75 , rangeMRU(1), miscRegValid(false) 76{ 77 table = new TlbEntry[size]; |
78 memset(table, 0, sizeof(TlbEntry) * size); |
79 80#if FULL_SYSTEM 81 tableWalker->setTlb(this); 82#endif 83} 84 85TLB::~TLB() 86{ --- 100 unchanged lines hidden (view full) --- 187 if (te->valid) { 188 DPRINTF(TLB, " - %#x, asn %d ppn %#x size: %#x ap:%d\n", 189 te->vpn << te->N, te->asid, te->pfn << te->N, te->size, te->ap); 190 flushedEntries++; 191 } 192 x++; 193 } 194 |
195 memset(table, 0, sizeof(TlbEntry) * size); |
196 197 flushTlb++; 198} 199 200 201void 202TLB::flushMvaAsid(Addr mva, uint64_t asn) 203{ --- 524 unchanged lines hidden --- |