Lines Matching defs:vaddr
49 EmulationPageTable::map(Addr vaddr, Addr paddr, int64_t size, uint64_t flags)
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)
78 assert(pageOffset(vaddr) == 0);
81 DPRINTF(MMU, "moving pages from vaddr %08p to %08p, size = %d\n", vaddr,
86 auto old_it = pTable.find(vaddr);
92 vaddr += pageSize;
105 EmulationPageTable::unmap(Addr vaddr, int64_t size)
107 assert(pageOffset(vaddr) == 0);
109 DPRINTF(MMU, "Unmapping page: %#x-%#x\n", vaddr, vaddr + size);
112 auto it = pTable.find(vaddr);
116 vaddr += pageSize;
121 EmulationPageTable::isUnmapped(Addr vaddr, int64_t size)
124 assert(pageOffset(vaddr) == 0);
127 if (pTable.find(vaddr + offset) != pTable.end())
134 EmulationPageTable::lookup(Addr vaddr)
136 Addr page_addr = pageAlign(vaddr);
144 EmulationPageTable::translate(Addr vaddr, Addr &paddr)
146 const Entry *entry = lookup(vaddr);
148 DPRINTF(MMU, "Couldn't Translate: %#x\n", vaddr);
151 paddr = pageOffset(vaddr) + entry->paddr;
152 DPRINTF(MMU, "Translating: %#x->%#x\n", vaddr, paddr);
181 paramOut(cp, "vaddr", pte.first);
197 Addr vaddr;
198 UNSERIALIZE_SCALAR(vaddr);
204 pTable.emplace(vaddr, Entry(paddr, flags));