Deleted Added
sdiff udiff text old ( 10318:98771a936b61 ) new ( 10564:a8c16e2d466a )
full compact
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, uint8_t *p, int size) const
94{
95 int prevSize = 0;
96
97 for (ChunkGenerator gen(addr, size, PageBytes); !gen.done(); gen.next()) {
98 Addr paddr;
99
100 if (!pTable->translate(gen.addr(), paddr)) {
101 if (allocating == Always) {

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

116 prevSize += gen.size();
117 }
118
119 return true;
120}
121
122
123void
124SETranslatingPortProxy::writeBlob(Addr addr, uint8_t *p, int size) const
125{
126 if (!tryWriteBlob(addr, p, size))
127 fatal("writeBlob(0x%x, ...) failed", addr);
128}
129
130bool
131SETranslatingPortProxy::tryMemsetBlob(Addr addr, uint8_t val, int size) const
132{

--- 84 unchanged lines hidden ---