fix ALPHA
cpu/exec_context.cc: put this code between #ifdef FULL_SYSTEM --HG-- extra : convert_revision : b934c7085d2a4337149ab8180a7d50851fbbf170
This commit is contained in:
parent
34576de15a
commit
6eebb270be
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,7 @@ ExecContext::serialize(ostream &os)
|
||||||
// thread_num and cpu_id are deterministic from the config
|
// thread_num and cpu_id are deterministic from the config
|
||||||
SERIALIZE_SCALAR(func_exe_inst);
|
SERIALIZE_SCALAR(func_exe_inst);
|
||||||
|
|
||||||
|
#ifdef FULL_SYSTEM
|
||||||
bool ctx = false;
|
bool ctx = false;
|
||||||
if (swCtx) {
|
if (swCtx) {
|
||||||
ctx = true;
|
ctx = true;
|
||||||
|
@ -129,6 +130,7 @@ ExecContext::serialize(ostream &os)
|
||||||
string bin_name = cur->name();
|
string bin_name = cur->name();
|
||||||
SERIALIZE_SCALAR(bin_name);
|
SERIALIZE_SCALAR(bin_name);
|
||||||
}
|
}
|
||||||
|
#endif //FULL_SYSTEM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,6 +142,7 @@ ExecContext::unserialize(Checkpoint *cp, const std::string §ion)
|
||||||
// thread_num and cpu_id are deterministic from the config
|
// thread_num and cpu_id are deterministic from the config
|
||||||
UNSERIALIZE_SCALAR(func_exe_inst);
|
UNSERIALIZE_SCALAR(func_exe_inst);
|
||||||
|
|
||||||
|
#ifdef FULL_SYSTEM
|
||||||
bool ctx;
|
bool ctx;
|
||||||
UNSERIALIZE_SCALAR(ctx);
|
UNSERIALIZE_SCALAR(ctx);
|
||||||
if (ctx) {
|
if (ctx) {
|
||||||
|
@ -168,6 +171,7 @@ ExecContext::unserialize(Checkpoint *cp, const std::string §ion)
|
||||||
UNSERIALIZE_SCALAR(bin_name);
|
UNSERIALIZE_SCALAR(bin_name);
|
||||||
system->getBin(bin_name)->activate();
|
system->getBin(bin_name)->activate();
|
||||||
}
|
}
|
||||||
|
#endif //FULL_SYSTEM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue