rv_ctrl.cc (9958:48eb085bc9ab) | rv_ctrl.cc (10565:23593fdaadcd) |
---|---|
1/* 2 * Copyright (c) 2010,2013 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 --- 40 unchanged lines hidden (view full) --- 49} 50 51Tick 52RealViewCtrl::read(PacketPtr pkt) 53{ 54 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 55 assert(pkt->getSize() == 4); 56 Addr daddr = pkt->getAddr() - pioAddr; | 1/* 2 * Copyright (c) 2010,2013 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 --- 40 unchanged lines hidden (view full) --- 49} 50 51Tick 52RealViewCtrl::read(PacketPtr pkt) 53{ 54 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 55 assert(pkt->getSize() == 4); 56 Addr daddr = pkt->getAddr() - pioAddr; |
57 pkt->allocate(); | |
58 59 switch(daddr) { 60 case ProcId0: 61 pkt->set(params()->proc_id0); 62 break; 63 case ProcId1: 64 pkt->set(params()->proc_id1); 65 break; --- 202 unchanged lines hidden --- | 57 58 switch(daddr) { 59 case ProcId0: 60 pkt->set(params()->proc_id0); 61 break; 62 case ProcId1: 63 pkt->set(params()->proc_id1); 64 break; --- 202 unchanged lines hidden --- |