simple_thread.cc (9384:877293183bdf) simple_thread.cc (9425:a24092160ec7)
1/*
2 * Copyright (c) 2001-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;

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

174void
175SimpleThread::serialize(ostream &os)
176{
177 ThreadState::serialize(os);
178 SERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
179 SERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
180 _pcState.serialize(os);
181 // thread_num and cpu_id are deterministic from the config
1/*
2 * Copyright (c) 2001-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;

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

174void
175SimpleThread::serialize(ostream &os)
176{
177 ThreadState::serialize(os);
178 SERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
179 SERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
180 _pcState.serialize(os);
181 // thread_num and cpu_id are deterministic from the config
182
183 //
184 // Now must serialize all the ISA dependent state
185 //
186 isa->serialize(baseCpu, os);
187}
188
189
190void
191SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
192{
193 ThreadState::unserialize(cp, section);
194 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
195 UNSERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
196 _pcState.unserialize(cp, section);
197 // thread_num and cpu_id are deterministic from the config
182}
183
184
185void
186SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
187{
188 ThreadState::unserialize(cp, section);
189 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
190 UNSERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
191 _pcState.unserialize(cp, section);
192 // thread_num and cpu_id are deterministic from the config
198
199 //
200 // Now must unserialize all the ISA dependent state
201 //
202 isa->unserialize(baseCpu, cp, section);
203}
204
205void
206SimpleThread::dumpFuncProfile()
207{
208 std::ostream *os = simout.create(csprintf("profile.%s.dat",
209 baseCpu->name()));
210 profile->dump(tc, *os);

--- 58 unchanged lines hidden ---
193}
194
195void
196SimpleThread::dumpFuncProfile()
197{
198 std::ostream *os = simout.create(csprintf("profile.%s.dat",
199 baseCpu->name()));
200 profile->dump(tc, *os);

--- 58 unchanged lines hidden ---