base.cc (5348:7847a4bf9641) base.cc (5496:6899b894166f)
1/*
2 * Copyright (c) 2002-2005 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;

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

169
170 idleFraction = constant(1.0) - notIdleFraction;
171}
172
173void
174BaseSimpleCPU::resetStats()
175{
176// startNumInst = numInst;
1/*
2 * Copyright (c) 2002-2005 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;

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

169
170 idleFraction = constant(1.0) - notIdleFraction;
171}
172
173void
174BaseSimpleCPU::resetStats()
175{
176// startNumInst = numInst;
177 // notIdleFraction = (_status != Idle);
177 notIdleFraction = (_status != Idle);
178}
179
180void
181BaseSimpleCPU::serialize(ostream &os)
182{
178}
179
180void
181BaseSimpleCPU::serialize(ostream &os)
182{
183 SERIALIZE_ENUM(_status);
183 BaseCPU::serialize(os);
184// SERIALIZE_SCALAR(inst);
185 nameOut(os, csprintf("%s.xc.0", name()));
186 thread->serialize(os);
187}
188
189void
190BaseSimpleCPU::unserialize(Checkpoint *cp, const string &section)
191{
184 BaseCPU::serialize(os);
185// SERIALIZE_SCALAR(inst);
186 nameOut(os, csprintf("%s.xc.0", name()));
187 thread->serialize(os);
188}
189
190void
191BaseSimpleCPU::unserialize(Checkpoint *cp, const string &section)
192{
193 UNSERIALIZE_ENUM(_status);
192 BaseCPU::unserialize(cp, section);
193// UNSERIALIZE_SCALAR(inst);
194 thread->unserialize(cp, csprintf("%s.xc.0", section));
195}
196
197void
198change_thread_state(int thread_number, int activate, int priority)
199{

--- 333 unchanged lines hidden ---
194 BaseCPU::unserialize(cp, section);
195// UNSERIALIZE_SCALAR(inst);
196 thread->unserialize(cp, csprintf("%s.xc.0", section));
197}
198
199void
200change_thread_state(int thread_number, int activate, int priority)
201{

--- 333 unchanged lines hidden ---