thread_state.cc (3686:fa8d8b90cd8a) thread_state.cc (4190:5069dfa3d62e)
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;

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

120}
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.
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;

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

120}
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 physPort = new FunctionalPort(csprintf("%s-%d-funcport",
128 if (physPort)
129 physPort->removeConn();
130 else
131 physPort = new FunctionalPort(csprintf("%s-%d-funcport",
129 baseCpu->name(), tid));
130 connectToMemFunc(physPort);
131}
132
133void
134ThreadState::connectVirtPort()
135{
136 // @todo: For now this disregards any older port that may have
137 // already existed. Fix this memory leak once the bus port IDs
138 // for functional ports is resolved.
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.
139 virtPort = new VirtualPort(csprintf("%s-%d-vport",
142 if (virtPort)
143 virtPort->removeConn();
144 else
145 virtPort = new VirtualPort(csprintf("%s-%d-vport",
140 baseCpu->name(), tid));
141 connectToMemFunc(virtPort);
142}
143
144void
145ThreadState::profileClear()
146{
147 if (profile)

--- 45 unchanged lines hidden ---
146 baseCpu->name(), tid));
147 connectToMemFunc(virtPort);
148}
149
150void
151ThreadState::profileClear()
152{
153 if (profile)

--- 45 unchanged lines hidden ---