a9scu.cc (10186:c215b6b513ba) | a9scu.cc (10565:23593fdaadcd) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 41 unchanged lines hidden (view full) --- 50} 51 52Tick 53A9SCU::read(PacketPtr pkt) 54{ 55 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 56 assert(pkt->getSize() == 4); 57 Addr daddr = pkt->getAddr() - pioAddr; | 1/* 2 * Copyright (c) 2010 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 --- 41 unchanged lines hidden (view full) --- 50} 51 52Tick 53A9SCU::read(PacketPtr pkt) 54{ 55 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 56 assert(pkt->getSize() == 4); 57 Addr daddr = pkt->getAddr() - pioAddr; |
58 pkt->allocate(); | |
59 60 switch(daddr) { 61 case Control: 62 pkt->set(1); // SCU already enabled 63 break; 64 case Config: 65 /* Without making a completely new SCU, we can use the core count field 66 * as 4 bits and inform the OS of up to 16 CPUs. Although the core --- 44 unchanged lines hidden --- | 58 59 switch(daddr) { 60 case Control: 61 pkt->set(1); // SCU already enabled 62 break; 63 case Config: 64 /* Without making a completely new SCU, we can use the core count field 65 * as 4 bits and inform the OS of up to 16 CPUs. Although the core --- 44 unchanged lines hidden --- |