fs_translating_port_proxy.cc (8852:c744483edfcf) | fs_translating_port_proxy.cc (8861:56d011130987) |
---|---|
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 --- 54 unchanged lines hidden (view full) --- 63{ 64} 65 66FSTranslatingPortProxy::~FSTranslatingPortProxy() 67{ 68} 69 70void | 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 --- 54 unchanged lines hidden (view full) --- 63{ 64} 65 66FSTranslatingPortProxy::~FSTranslatingPortProxy() 67{ 68} 69 70void |
71FSTranslatingPortProxy::readBlob(Addr addr, uint8_t *p, int size) | 71FSTranslatingPortProxy::readBlob(Addr addr, uint8_t *p, int size) const |
72{ 73 Addr paddr; 74 for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done(); 75 gen.next()) 76 { 77 if (_tc) 78 paddr = TheISA::vtophys(_tc,gen.addr()); 79 else 80 paddr = TheISA::vtophys(gen.addr()); 81 82 PortProxy::readBlob(paddr, p, gen.size()); 83 p += gen.size(); 84 } 85} 86 87void | 72{ 73 Addr paddr; 74 for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done(); 75 gen.next()) 76 { 77 if (_tc) 78 paddr = TheISA::vtophys(_tc,gen.addr()); 79 else 80 paddr = TheISA::vtophys(gen.addr()); 81 82 PortProxy::readBlob(paddr, p, gen.size()); 83 p += gen.size(); 84 } 85} 86 87void |
88FSTranslatingPortProxy::writeBlob(Addr addr, uint8_t *p, int size) | 88FSTranslatingPortProxy::writeBlob(Addr addr, uint8_t *p, int size) const |
89{ 90 Addr paddr; 91 for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done(); 92 gen.next()) 93 { 94 if (_tc) 95 paddr = TheISA::vtophys(_tc,gen.addr()); 96 else 97 paddr = TheISA::vtophys(gen.addr()); 98 99 PortProxy::writeBlob(paddr, p, gen.size()); 100 p += gen.size(); 101 } 102} 103 104void | 89{ 90 Addr paddr; 91 for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done(); 92 gen.next()) 93 { 94 if (_tc) 95 paddr = TheISA::vtophys(_tc,gen.addr()); 96 else 97 paddr = TheISA::vtophys(gen.addr()); 98 99 PortProxy::writeBlob(paddr, p, gen.size()); 100 p += gen.size(); 101 } 102} 103 104void |
105FSTranslatingPortProxy::memsetBlob(Addr address, uint8_t v, int size) | 105FSTranslatingPortProxy::memsetBlob(Addr address, uint8_t v, int size) const |
106{ 107 Addr paddr; 108 for (ChunkGenerator gen(address, size, TheISA::PageBytes); !gen.done(); 109 gen.next()) 110 { 111 if (_tc) 112 paddr = TheISA::vtophys(_tc,gen.addr()); 113 else --- 49 unchanged lines hidden --- | 106{ 107 Addr paddr; 108 for (ChunkGenerator gen(address, size, TheISA::PageBytes); !gen.done(); 109 gen.next()) 110 { 111 if (_tc) 112 paddr = TheISA::vtophys(_tc,gen.addr()); 113 else --- 49 unchanged lines hidden --- |