amba_fake.cc (12772:362544959c40) | amba_fake.cc (13230:2988dc5d1d6f) |
---|---|
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 --- 47 unchanged lines hidden (view full) --- 56AmbaFake::read(PacketPtr pkt) 57{ 58 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 59 60 Addr daddr = pkt->getAddr() - pioAddr; 61 62 DPRINTF(AMBA, " read register %#x\n", daddr); 63 | 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 --- 47 unchanged lines hidden (view full) --- 56AmbaFake::read(PacketPtr pkt) 57{ 58 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 59 60 Addr daddr = pkt->getAddr() - pioAddr; 61 62 DPRINTF(AMBA, " read register %#x\n", daddr); 63 |
64 pkt->set | 64 pkt->setLE<uint32_t>(0); |
65 if (!readId(pkt, ambaId, pioAddr) && !params()->ignore_access) 66 panic("Tried to read AmbaFake at offset %#x that doesn't exist\n", daddr); 67 68 pkt->makeAtomicResponse(); 69 return pioDelay; 70} 71 72Tick --- 18 unchanged lines hidden --- | 65 if (!readId(pkt, ambaId, pioAddr) && !params()->ignore_access) 66 panic("Tried to read AmbaFake at offset %#x that doesn't exist\n", daddr); 67 68 pkt->makeAtomicResponse(); 69 return pioDelay; 70} 71 72Tick --- 18 unchanged lines hidden --- |