1/* 2 * Copyright (c) 2013, 2018-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 --- 517 unchanged lines hidden (view full) --- 526 break; 527 } 528} 529 530const PageTableOps* 531SMMUv3::getPageTableOps(uint8_t trans_granule) 532{ 533 static V8PageTableOps4k ptOps4k; |
534 static V8PageTableOps16k ptOps16k; |
535 static V8PageTableOps64k ptOps64k; 536 537 switch (trans_granule) { 538 case TRANS_GRANULE_4K: return &ptOps4k; |
539 case TRANS_GRANULE_16K: return &ptOps16k; |
540 case TRANS_GRANULE_64K: return &ptOps64k; 541 default: 542 panic("Unknown translation granule size %d", trans_granule); 543 } 544} 545 546Tick 547SMMUv3::readControl(PacketPtr pkt) --- 240 unchanged lines hidden --- |