se_translating_port_proxy.cc (10318:98771a936b61) se_translating_port_proxy.cc (10564:a8c16e2d466a)
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
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
93SETranslatingPortProxy::tryWriteBlob(Addr addr, const uint8_t *p,
94 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
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
124SETranslatingPortProxy::writeBlob(Addr addr, uint8_t *p, int size) const
125SETranslatingPortProxy::writeBlob(Addr addr, const 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 ---
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 ---