tlb.cc (13968:55d001a9732d) tlb.cc (14066:c29e36d24f68)
1/*
2 * Copyright (c) 2010-2013, 2016-2019 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

--- 1404 unchanged lines hidden (view full) ---

1413 }
1414}
1415
1416Fault
1417TLB::getTE(TlbEntry **te, const RequestPtr &req, ThreadContext *tc, Mode mode,
1418 Translation *translation, bool timing, bool functional,
1419 bool is_secure, TLB::ArmTranslationType tranType)
1420{
1/*
2 * Copyright (c) 2010-2013, 2016-2019 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

--- 1404 unchanged lines hidden (view full) ---

1413 }
1414}
1415
1416Fault
1417TLB::getTE(TlbEntry **te, const RequestPtr &req, ThreadContext *tc, Mode mode,
1418 Translation *translation, bool timing, bool functional,
1419 bool is_secure, TLB::ArmTranslationType tranType)
1420{
1421 // In a 2-stage system, the IPA->PA translation can be started via this
1422 // call so make sure the miscRegs are correct.
1423 if (isStage2) {
1424 updateMiscReg(tc, tranType);
1425 }
1421 bool is_fetch = (mode == Execute);
1422 bool is_write = (mode == Write);
1423
1424 Addr vaddr_tainted = req->getVaddr();
1425 Addr vaddr = 0;
1426 ExceptionLevel target_el = aarch64 ? aarch64EL : EL1;
1427 if (aarch64) {
1428 vaddr = purifyTaggedAddr(vaddr_tainted, tc, target_el, ttbcr);

--- 163 unchanged lines hidden ---
1426 bool is_fetch = (mode == Execute);
1427 bool is_write = (mode == Write);
1428
1429 Addr vaddr_tainted = req->getVaddr();
1430 Addr vaddr = 0;
1431 ExceptionLevel target_el = aarch64 ? aarch64EL : EL1;
1432 if (aarch64) {
1433 vaddr = purifyTaggedAddr(vaddr_tainted, tc, target_el, ttbcr);

--- 163 unchanged lines hidden ---