simple_thread.cc (7680:f4eda002333b) | simple_thread.cc (7720:65d338a8dba4) |
---|---|
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); | 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 SERIALIZE_SCALAR(microPC); 197 SERIALIZE_SCALAR(nextMicroPC); 198 SERIALIZE_SCALAR(PC); 199 SERIALIZE_SCALAR(nextPC); 200 SERIALIZE_SCALAR(nextNPC); | 196 _pcState.serialize(os); |
201 // thread_num and cpu_id are deterministic from the config 202 203 // 204 // Now must serialize all the ISA dependent state 205 // 206 isa.serialize(cpu, os); 207} 208 209 210void 211SimpleThread::unserialize(Checkpoint *cp, const std::string §ion) 212{ 213 ThreadState::unserialize(cp, section); 214 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs); 215 UNSERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs); | 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 §ion) 208{ 209 ThreadState::unserialize(cp, section); 210 UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs); 211 UNSERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs); |
216 UNSERIALIZE_SCALAR(microPC); 217 UNSERIALIZE_SCALAR(nextMicroPC); 218 UNSERIALIZE_SCALAR(PC); 219 UNSERIALIZE_SCALAR(nextPC); 220 UNSERIALIZE_SCALAR(nextNPC); | 212 _pcState.unserialize(cp, section); |
221 // thread_num and cpu_id are deterministic from the config 222 223 // 224 // Now must unserialize all the ISA dependent state 225 // 226 isa.unserialize(cpu, cp, section); 227} 228 --- 76 unchanged lines hidden --- | 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 --- |