simple_thread.cc (6029:007c36616f47) simple_thread.cc (6315:c7295a4826d5)
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;

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

187 _contextId = oldContext->contextId();
188}
189
190void
191SimpleThread::serialize(ostream &os)
192{
193 ThreadState::serialize(os);
194 regs.serialize(cpu, os);
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;

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

187 _contextId = oldContext->contextId();
188}
189
190void
191SimpleThread::serialize(ostream &os)
192{
193 ThreadState::serialize(os);
194 regs.serialize(cpu, os);
195 SERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
195 // thread_num and cpu_id are deterministic from the config
196}
197
198
199void
200SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
201{
202 ThreadState::unserialize(cp, section);
203 regs.unserialize(cpu, cp, section);
196 // thread_num and cpu_id are deterministic from the config
197}
198
199
200void
201SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
202{
203 ThreadState::unserialize(cp, section);
204 regs.unserialize(cpu, cp, section);
205 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
204 // thread_num and cpu_id are deterministic from the config
205}
206
207#if FULL_SYSTEM
208void
209SimpleThread::dumpFuncProfile()
210{
211 std::ostream *os = simout.create(csprintf("profile.%s.dat", cpu->name()));

--- 71 unchanged lines hidden ---
206 // thread_num and cpu_id are deterministic from the config
207}
208
209#if FULL_SYSTEM
210void
211SimpleThread::dumpFuncProfile()
212{
213 std::ostream *os = simout.create(csprintf("profile.%s.dat", cpu->name()));

--- 71 unchanged lines hidden ---