Deleted Added
sdiff udiff text old ( 6029:007c36616f47 ) new ( 6315:c7295a4826d5 )
full compact
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 // 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);
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 ---