Lines Matching refs:te

228     TlbEntry *te;
231 te = &table[x];
232 if (te->valid)
233 DPRINTF(TLB, " * %s\n", te->print());
245 TlbEntry *te;
247 te = &table[x];
249 true : te->checkELMatch(target_el);
251 if (te->valid && secure_lookup == !te->nstid &&
252 (te->vmid == vmid || secure_lookup) && el_match) {
254 DPRINTF(TLB, " - %s\n", te->print());
255 te->valid = false;
278 TlbEntry *te;
280 te = &table[x];
282 true : te->checkELMatch(target_el);
284 if (te->valid && te->nstid && te->isHyp == hyp && el_match) {
286 DPRINTF(TLB, " - %s\n", te->print());
288 te->valid = false;
319 TlbEntry *te;
322 te = &table[x];
323 if (te->valid && te->asid == asn && secure_lookup == !te->nstid &&
324 (te->vmid == vmid || secure_lookup) &&
325 te->checkELMatch(target_el)) {
327 te->valid = false;
328 DPRINTF(TLB, " - %s\n", te->print());
349 TlbEntry *te;
355 te = lookup(mva, asn, vmid, hyp, secure_lookup, false, ignore_asn,
357 while (te != NULL) {
358 if (secure_lookup == !te->nstid) {
359 DPRINTF(TLB, " - %s\n", te->print());
360 te->valid = false;
363 te = lookup(mva, asn, vmid, hyp, secure_lookup, false, ignore_asn,
605 TLB::checkPermissions(TlbEntry *te, const RequestPtr &req, Mode mode)
620 ArmFault::TranMethod tranMethod = te->longDescFormat ? ArmFault::LpaeTran
628 (te->mtype != TlbEntry::MemoryType::Normal)) {
630 vaddr, te->domain, is_write,
631 ArmFault::PermissionLL + te->lookupLevel,
638 if (te->mtype != TlbEntry::MemoryType::Normal) {
649 if (te->nonCacheable) {
660 if (!te->longDescFormat) {
661 switch ((dacr >> (static_cast<uint8_t>(te->domain) * 2)) & 0x3) {
666 static_cast<uint8_t>(te->domain), is_write);
673 ArmFault::DomainLL + te->lookupLevel,
677 vaddr, te->domain, is_write,
678 ArmFault::DomainLL + te->lookupLevel,
691 uint8_t ap = te->longDescFormat ? te->ap << 1 : te->ap;
692 uint8_t hap = te->hap;
694 if (sctlr.afe == 1 || te->longDescFormat)
754 bool xn = te->xn || (isWritable && sctlr.wxn) ||
757 (te->longDescFormat && te->pxn && is_priv) ||
758 (isSecure && te->ns && scr.sif))) {
762 ap, is_priv, is_write, te->ns, scr.sif,sctlr.afe);
767 ArmFault::PermissionLL + te->lookupLevel,
774 vaddr, te->domain, is_write,
775 ArmFault::PermissionLL + te->lookupLevel,
783 TLB::checkPermissions64(TlbEntry *te, const RequestPtr &req, Mode mode,
814 (te->mtype != TlbEntry::MemoryType::Normal)) {
816 vaddr_tainted, te->domain, is_write,
817 ArmFault::PermissionLL + te->lookupLevel,
824 if (te->mtype != TlbEntry::MemoryType::Normal) {
837 if (te->nonCacheable) {
849 uint8_t ap = 0x3 & (te->ap); // 2-bit access protection field
852 uint8_t xn = te->xn;
853 uint8_t pxn = te->pxn;
871 uint8_t hap = 0x3 & te->hap;
993 ap, is_priv, is_write, te->ns, scr.sif, sctlr.afe);
998 ArmFault::PermissionLL + te->lookupLevel,
1005 vaddr_tainted, te->domain,
1007 ArmFault::PermissionLL + te->lookupLevel,
1140 TlbEntry *te = NULL;
1142 Fault fault = getResultTe(&te, req, tc, mode, translation, timing,
1145 if ((te == NULL) && (fault == NoFault)) delay = true;
1149 if (te != NULL) {
1154 te->shareable, te->innerAttrs, te->outerAttrs,
1155 static_cast<uint8_t>(te->mtype), isStage2);
1156 setAttr(te->attributes);
1158 if (te->nonCacheable && !req->isCacheMaintenance())
1164 if (te->mtype != TlbEntry::MemoryType::Normal)
1167 Addr pa = te->pAddr(vaddr);
1170 if (isSecure && !te->ns) {
1174 (te->mtype != TlbEntry::MemoryType::Normal)) {
1187 fault = testTranslation(req, mode, te->domain);
1193 return te ? finalizePhysical(req, tc, mode) : NoFault;
1452 TLB::getTE(TlbEntry **te, const RequestPtr &req, ThreadContext *tc, Mode mode,
1472 *te = lookup(vaddr, asid, vmid, isHyp, is_secure, false, false, target_el);
1473 if (*te == NULL) {
1503 *te = lookup(vaddr, asid, vmid, isHyp, is_secure, false, false, target_el);
1504 if (!*te)
1506 assert(*te);
1519 TLB::getResultTe(TlbEntry **te, const RequestPtr &req,
1540 *te = s2Te;
1563 *te = mergeTe;
1584 *te = s1Te;