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); |
196 // thread_num and cpu_id are deterministic from the config 197} 198 199 200void 201SimpleThread::unserialize(Checkpoint *cp, const std::string §ion) 202{ 203 ThreadState::unserialize(cp, section); 204 regs.unserialize(cpu, cp, section); |
205 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs); |
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 --- |