object_file.cc (5070:3d6a1e37b944) | object_file.cc (5222:bb733a878f85) |
---|---|
1/* 2 * Copyright (c) 2002-2004 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66} 67 68 69bool 70ObjectFile::loadSection(Section *sec, Port *memPort, Addr addrMask) 71{ 72 if (sec->size != 0) { 73 Addr addr = sec->baseAddr & addrMask; | 1/* 2 * Copyright (c) 2002-2004 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66} 67 68 69bool 70ObjectFile::loadSection(Section *sec, Port *memPort, Addr addrMask) 71{ 72 if (sec->size != 0) { 73 Addr addr = sec->baseAddr & addrMask; |
74 warn("attempting load @ section addr: %#x", addr); |
|
74 if (sec->fileImage) { 75 memPort->writeBlob(addr, sec->fileImage, sec->size); 76 } 77 else { 78 // no image: must be bss 79 memPort->memsetBlob(addr, 0, sec->size); 80 } 81 } --- 71 unchanged lines hidden --- | 75 if (sec->fileImage) { 76 memPort->writeBlob(addr, sec->fileImage, sec->size); 77 } 78 else { 79 // no image: must be bss 80 memPort->memsetBlob(addr, 0, sec->size); 81 } 82 } --- 71 unchanged lines hidden --- |