1/* 2 * Copyright (c) 2006 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; --- 112 unchanged lines hidden (view full) --- 121 122void 123ThreadState::connectPhysPort() 124{ 125 // @todo: For now this disregards any older port that may have 126 // already existed. Fix this memory leak once the bus port IDs 127 // for functional ports is resolved. 128 if (physPort) |
129 physPort->disconnectFromPeer(); |
130 else 131 physPort = new FunctionalPort(csprintf("%s-%d-funcport", 132 baseCpu->name(), tid)); 133 connectToMemFunc(physPort); 134} 135 136void 137ThreadState::connectVirtPort() 138{ 139 // @todo: For now this disregards any older port that may have 140 // already existed. Fix this memory leak once the bus port IDs 141 // for functional ports is resolved. 142 if (virtPort) |
143 virtPort->disconnectFromPeer(); |
144 else 145 virtPort = new VirtualPort(csprintf("%s-%d-vport", 146 baseCpu->name(), tid)); 147 connectToMemFunc(virtPort); 148} 149 150void 151ThreadState::profileClear() --- 46 unchanged lines hidden --- |