Deleted Added
sdiff udiff text old ( 7680:f4eda002333b ) new ( 7720:65d338a8dba4 )
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;

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

188}
189
190void
191SimpleThread::serialize(ostream &os)
192{
193 ThreadState::serialize(os);
194 SERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
195 SERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
196 _pcState.serialize(os);
197 // thread_num and cpu_id are deterministic from the config
198
199 //
200 // Now must serialize all the ISA dependent state
201 //
202 isa.serialize(cpu, os);
203}
204
205
206void
207SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
208{
209 ThreadState::unserialize(cp, section);
210 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
211 UNSERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
212 _pcState.unserialize(cp, section);
213 // thread_num and cpu_id are deterministic from the config
214
215 //
216 // Now must unserialize all the ISA dependent state
217 //
218 isa.unserialize(cpu, cp, section);
219}
220

--- 76 unchanged lines hidden ---