1/* 2 * Copyright (c) 2011 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 --- 76 unchanged lines hidden (view full) --- 85SETranslatingPortProxy::readBlob(Addr addr, uint8_t *p, int size) const 86{ 87 if (!tryReadBlob(addr, p, size)) 88 fatal("readBlob(0x%x, ...) failed", addr); 89} 90 91 92bool |
93SETranslatingPortProxy::tryWriteBlob(Addr addr, const uint8_t *p, 94 int size) const |
95{ 96 int prevSize = 0; 97 98 for (ChunkGenerator gen(addr, size, PageBytes); !gen.done(); gen.next()) { 99 Addr paddr; 100 101 if (!pTable->translate(gen.addr(), paddr)) { 102 if (allocating == Always) { --- 14 unchanged lines hidden (view full) --- 117 prevSize += gen.size(); 118 } 119 120 return true; 121} 122 123 124void |
125SETranslatingPortProxy::writeBlob(Addr addr, const uint8_t *p, int size) const |
126{ 127 if (!tryWriteBlob(addr, p, size)) 128 fatal("writeBlob(0x%x, ...) failed", addr); 129} 130 131bool 132SETranslatingPortProxy::tryMemsetBlob(Addr addr, uint8_t val, int size) const 133{ --- 84 unchanged lines hidden --- |