Deleted Added
sdiff udiff text old ( 10396:5eede8466691 ) new ( 10565:23593fdaadcd )
full compact
1/*
2 * Copyright (c) 2012-2014 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

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

59 "functioning system.\n");
60}
61
62Tick
63EnergyCtrl::read(PacketPtr pkt)
64{
65 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize);
66 assert(pkt->getSize() == 4);
67 pkt->allocate();
68
69 Addr daddr = pkt->getAddr() - pioAddr;
70 assert((daddr & 3) == 0);
71 Registers reg = Registers(daddr / 4);
72
73 if (!dvfsHandler->isEnabled()) {
74 // NB: Zero is a good response if the handler is disabled
75 pkt->set<uint32_t>(0);

--- 189 unchanged lines hidden ---