1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2003 The Regents of The University of Michigan 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 --- 59 unchanged lines hidden (view full) --- 68 const Addr pageSize; 69 const Addr offsetMask; 70 71 const uint64_t pid; 72 const std::string _name; 73 74 public: 75 |
76 PageTableBase(const std::string &__name, uint64_t _pid, Addr _pageSize) |
77 : pageSize(_pageSize), offsetMask(mask(floorLog2(_pageSize))), 78 pid(_pid), _name(__name) 79 { 80 assert(isPowerOf2(pageSize)); 81 pTableCache[0].valid = false; 82 pTableCache[1].valid = false; 83 pTableCache[2].valid = false; 84 } --- 120 unchanged lines hidden (view full) --- 205{ 206 private: 207 typedef std::unordered_map<Addr, TheISA::TlbEntry> PTable; 208 typedef PTable::iterator PTableItr; 209 PTable pTable; 210 211 public: 212 |
213 FuncPageTable(const std::string &__name, uint64_t _pid, Addr _pageSize); |
214 215 ~FuncPageTable(); 216 217 void initState(ThreadContext* tc) override 218 { 219 } 220 221 void map(Addr vaddr, Addr paddr, int64_t size, --- 26 unchanged lines hidden --- |