/gem5/src/arch/riscv/ |
H A D | vtophys.hh | 49 vtophys(Addr vaddr) argument 52 return vaddr; 56 vtophys(ThreadContext *tc, Addr vaddr) argument 59 return vtophys(vaddr);
|
/gem5/src/arch/mips/ |
H A D | vtophys.hh | 43 Addr vtophys(Addr vaddr); 44 Addr vtophys(ThreadContext *tc, Addr vaddr);
|
H A D | vtophys.cc | 47 MipsISA::vtophys(Addr vaddr) argument
|
/gem5/src/arch/sparc/ |
H A D | vtophys.hh | 42 Addr vtophys(Addr vaddr); 43 Addr vtophys(ThreadContext *tc, Addr vaddr);
|
H A D | tlb.cc | 423 Addr vaddr = req->getVaddr(); 429 vaddr, req->getSize()); 434 if (cacheEntry[0]->range.va < vaddr + sizeof(MachInst) && 435 cacheEntry[0]->range.va + cacheEntry[0]->range.size >= vaddr) { 436 req->setPaddr(cacheEntry[0]->pte.translate(vaddr)); 440 req->setPaddr(vaddr & PAddrImplMask); 476 req->setPaddr(vaddr & PAddrImplMask); 481 if (vaddr & 0x3) { 487 vaddr = vaddr 540 Addr vaddr = req->getVaddr(); local [all...] |
/gem5/src/arch/x86/ |
H A D | vtophys.hh | 50 Addr vtophys(Addr vaddr); 51 Addr vtophys(ThreadContext *tc, Addr vaddr);
|
H A D | vtophys.cc | 55 vtophys(Addr vaddr) argument 61 vtophys(ThreadContext *tc, Addr vaddr) argument 65 Addr addr = vaddr; 70 Addr masked_addr = vaddr & mask(logBytes); 72 DPRINTF(VtoPhys, "vtophys(%#x) -> %#x\n", vaddr, paddr);
|
H A D | tlb.cc | 102 assert(newEntry->vaddr == vpn); 114 newEntry->vaddr = vpn; 176 Addr vaddr = req->getVaddr(); local 177 Addr prefix = (vaddr >> 3) & IntAddrPrefixMask; 181 vaddr = (vaddr >> 3) & ~IntAddrPrefixMask; 185 if (!msrAddrToIndex(regNum, vaddr)) 197 Addr IOPort = vaddr & ~IntAddrPrefixMask; 285 Addr vaddr = req->getVaddr(); local 286 DPRINTF(TLB, "Translating vaddr [all...] |
H A D | pagetable.cc | 51 : paddr(0), vaddr(0), logBytes(0), writable(0), 59 paddr(_paddr), vaddr(_vaddr), logBytes(PageShift), writable(!read_only), 68 SERIALIZE_SCALAR(vaddr); 83 UNSERIALIZE_SCALAR(vaddr);
|
/gem5/src/arch/alpha/ |
H A D | vtophys.cc | 49 kernel_pte_lookup(PortProxy &mem, Addr ptbr, VAddr vaddr) argument 51 Addr level1_pte = ptbr + vaddr.level1(); 54 DPRINTF(VtoPhys, "level 1 PTE not valid, va = %#\n", vaddr); 58 Addr level2_pte = level1.paddr() + vaddr.level2(); 61 DPRINTF(VtoPhys, "level 2 PTE not valid, va = %#x\n", vaddr); 65 Addr level3_pte = level2.paddr() + vaddr.level3(); 68 DPRINTF(VtoPhys, "level 3 PTE not valid, va = %#x\n", vaddr); 75 vtophys(Addr vaddr) argument 78 if (IsUSeg(vaddr)) 79 DPRINTF(VtoPhys, "vtophys: invalid vaddr 93 VAddr vaddr = addr; local [all...] |
H A D | vtophys.hh | 45 VAddr vaddr); 47 Addr vtophys(Addr vaddr); 48 Addr vtophys(ThreadContext *tc, Addr vaddr);
|
H A D | faults.hh | 135 VAddr vaddr; member in class:AlphaISA::DtbFault 141 : vaddr(_vaddr), reqFlags(_reqFlags), flags(_flags) 158 NDtbMissFault(VAddr vaddr, Request::Flags reqFlags, uint64_t flags) argument 159 : DtbFault(vaddr, reqFlags, flags) 176 PDtbMissFault(VAddr vaddr, Request::Flags reqFlags, uint64_t flags) argument 177 : DtbFault(vaddr, reqFlags, flags) 192 DtbPageFault(VAddr vaddr, Request::Flags reqFlags, uint64_t flags) argument 193 : DtbFault(vaddr, reqFlags, flags) 208 DtbAcvFault(VAddr vaddr, Request::Flags reqFlags, uint64_t flags) argument 209 : DtbFault(vaddr, reqFlag 224 DtbAlignmentFault(VAddr vaddr, Request::Flags reqFlags, uint64_t flags) argument [all...] |
H A D | tlb.hh | 95 void insert(Addr vaddr, TlbEntry &entry); 102 demapPage(Addr vaddr, uint64_t asn) override 105 flushAddr(vaddr, asn); 110 validVirtualAddress(Addr vaddr) 113 Addr unimplBits = vaddr & VAddrUnImplMask;
|
H A D | faults.cc | 160 tc->setMiscRegNoEffect(IPR_VA, vaddr); 171 tc->readMiscRegNoEffect(IPR_MVPTBR) | (vaddr.vpn() << 3)); 202 VAddr vaddr(pc); 203 TlbEntry entry(p->pTable->pid(), vaddr.page(), pte->paddr, 206 dynamic_cast<TLB *>(tc->getITBPtr())->insert(vaddr.page(), entry); 218 const EmulationPageTable::Entry *pte = p->pTable->lookup(vaddr); 219 if (!pte && p->fixupStackFault(vaddr)) 220 pte = p->pTable->lookup(vaddr); 221 panic_if(!pte, "Tried to access unmapped address %#x.\n", (Addr)vaddr); 222 TlbEntry entry(p->pTable->pid(), vaddr [all...] |
/gem5/src/mem/ |
H A D | page_table.cc | 49 EmulationPageTable::map(Addr vaddr, Addr paddr, int64_t size, uint64_t flags) argument 53 assert(pageOffset(vaddr) == 0); 55 DPRINTF(MMU, "Allocating Page: %#x-%#x\n", vaddr, vaddr + size); 58 auto it = pTable.find(vaddr); 63 vaddr); 66 pTable.emplace(vaddr, Entry(paddr, flags)); 70 vaddr += pageSize; 76 EmulationPageTable::remap(Addr vaddr, int64_t size, Addr new_vaddr) argument 78 assert(pageOffset(vaddr) 105 unmap(Addr vaddr, int64_t size) argument 121 isUnmapped(Addr vaddr, int64_t size) argument 134 lookup(Addr vaddr) argument 144 translate(Addr vaddr, Addr &paddr) argument 197 Addr vaddr; local [all...] |
H A D | page_table.hh | 112 * @param vaddr The starting virtual address of the region. 118 virtual void map(Addr vaddr, Addr paddr, int64_t size, uint64_t flags = 0); 119 virtual void remap(Addr vaddr, int64_t size, Addr new_vaddr); 120 virtual void unmap(Addr vaddr, int64_t size); 124 * @param vaddr The starting virtual address of the region. 128 virtual bool isUnmapped(Addr vaddr, int64_t size); 132 * @param vaddr The virtual address. 133 * @return The page table entry corresponding to vaddr. 135 const Entry *lookup(Addr vaddr); 139 * @param vaddr Th 150 translate(Addr vaddr) argument [all...] |
H A D | multi_level_page_table.hh | 137 walk(System *system, Addr pageSize, Addr table, Addr vaddr, argument 140 entry->read(system->physProxy, table, vaddr); 148 walk(System *system, Addr pageSize, Addr table, Addr vaddr, argument 152 first.read(system->physProxy, table, vaddr); 165 system, pageSize, next, vaddr, allocate, entry); 171 walk(System *system, Addr pageSize, Addr table, Addr vaddr, argument 175 system, pageSize, table, vaddr, allocate, entry); 216 map(Addr vaddr, Addr paddr, int64_t size, uint64_t flags = 0) override 218 EmulationPageTable::map(vaddr, paddr, size, flags); 224 vaddr [all...] |
/gem5/src/arch/arm/ |
H A D | vtophys.hh | 45 Addr vtophys(Addr vaddr); 46 Addr vtophys(ThreadContext *tc, Addr vaddr); 47 bool virtvalid(ThreadContext *tc, Addr vaddr);
|
H A D | vtophys.cc | 62 ArmISA::vtophys(Addr vaddr) argument 64 fatal("VTOPHYS: Can't convert vaddr to paddr on ARM without a thread context"); 72 // to get it to translate the vaddr to a paddr 108 ArmISA::virtvalid(ThreadContext *tc, Addr vaddr) argument 110 const std::pair<bool, Addr> translation(try_translate(tc, vaddr));
|
/gem5/src/arch/power/ |
H A D | vtophys.hh | 46 Addr vtophys(Addr vaddr); 47 Addr vtophys(ThreadContext *tc, Addr vaddr);
|
H A D | vtophys.cc | 36 PowerISA::vtophys(Addr vaddr) argument
|
/gem5/src/sim/ |
H A D | faults.hh | 96 Addr vaddr; member in class:GenericPageTableFault 99 GenericPageTableFault(Addr va) : vaddr(va) {} 102 Addr getFaultVAddr() const { return vaddr; } 108 Addr vaddr; member in class:GenericAlignmentFault 111 GenericAlignmentFault(Addr va) : vaddr(va) {} 114 Addr getFaultVAddr() const { return vaddr; }
|
H A D | faults.cc | 72 handled = p->fixupStackFault(vaddr); 75 panic("Page table fault when accessing virtual address %#x\n", vaddr); 81 panic("Alignment fault when accessing virtual address %#x\n", vaddr);
|
/gem5/src/gpu-compute/ |
H A D | fetch_unit.cc | 119 Addr vaddr = wavefront->pc(); local 127 vaddr += 130 vaddr = wavefront->basePtr + vaddr; 133 computeUnit->cu_id, wavefront->simdId, wavefront->wfSlotId, vaddr); 139 Addr split_addr = roundDown(vaddr + block_size - 1, block_size); 142 if (split_addr > vaddr) { 144 size = split_addr - vaddr; 149 0, vaddr, size, Request::INST_FETCH, 172 vaddr); [all...] |
H A D | gpu_tlb.cc | 176 newEntry->vaddr = vpn; 195 if ((*entry)->vaddr <= va && (*entry)->vaddr + page_size > va) { 196 DPRINTF(GPUTLB, "Matched vaddr %#x to entry starting at %#x " 197 "with size %#x.\n", va, (*entry)->vaddr, page_size); 280 Addr vaddr = req->getVaddr(); local 281 Addr prefix = (vaddr >> 3) & IntAddrPrefixMask; 286 vaddr = vaddr >> 3; 290 switch (vaddr 662 Addr vaddr = req->getVaddr(); local 716 Addr vaddr = req->getVaddr(); local 1164 Addr vaddr = pkt->req->getVaddr(); local 1323 Addr vaddr = pkt->req->getVaddr(); local 1417 Addr vaddr = pkt->req->getVaddr(); local 1525 Addr vaddr = pkt->req->getVaddr(); local [all...] |