thread_state.cc (3675:dc883b610345) thread_state.cc (3686:fa8d8b90cd8a)
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;

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

108 quiesceEvent->schedule(quiesceEndTick);
109 if (kernelStats)
110 kernelStats->unserialize(cp, section);
111#endif
112}
113
114#if FULL_SYSTEM
115void
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;

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

108 quiesceEvent->schedule(quiesceEndTick);
109 if (kernelStats)
110 kernelStats->unserialize(cp, section);
111#endif
112}
113
114#if FULL_SYSTEM
115void
116ThreadState::init()
116ThreadState::connectMemPorts()
117{
117{
118 initPhysPort();
119 initVirtPort();
118 connectPhysPort();
119 connectVirtPort();
120}
121
122void
120}
121
122void
123ThreadState::initPhysPort()
123ThreadState::connectPhysPort()
124{
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.
125 physPort = new FunctionalPort(csprintf("%s-%d-funcport",
126 baseCpu->name(), tid));
127 connectToMemFunc(physPort);
128}
129
130void
128 physPort = new FunctionalPort(csprintf("%s-%d-funcport",
129 baseCpu->name(), tid));
130 connectToMemFunc(physPort);
131}
132
133void
131ThreadState::initVirtPort()
134ThreadState::connectVirtPort()
132{
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.
133 virtPort = new VirtualPort(csprintf("%s-%d-vport",
134 baseCpu->name(), tid));
135 connectToMemFunc(virtPort);
136}
137
138void
139ThreadState::profileClear()
140{

--- 46 unchanged lines hidden ---
139 virtPort = new VirtualPort(csprintf("%s-%d-vport",
140 baseCpu->name(), tid));
141 connectToMemFunc(virtPort);
142}
143
144void
145ThreadState::profileClear()
146{

--- 46 unchanged lines hidden ---