diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-05-31 18:58:54 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-05-31 18:58:54 -0400 |
commit | 93983de0cfa06e58f1d448782269ebd33341ae83 (patch) | |
tree | 16d50228d138b5334f8cd1d3feffcfdd2c3adacf /cpu/exec_context.cc | |
parent | 9d0aa1399157bd90436409a7596377b4591a2d4a (diff) | |
parent | 6964ecd1cf14f294a300e91bc5b65042d03952d4 (diff) | |
download | gem5-93983de0cfa06e58f1d448782269ebd33341ae83.tar.xz |
Merged head into linux tree
base/stats/mysql.hh:
Rename of Statsistics namespace to stats... merge from head
--HG--
extra : convert_revision : a5a7f6268b35e75fba1b1800a74fcd6dbd09d974
Diffstat (limited to 'cpu/exec_context.cc')
-rw-r--r-- | cpu/exec_context.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpu/exec_context.cc b/cpu/exec_context.cc index 7f7719bf0..0d3a80fe7 100644 --- a/cpu/exec_context.cc +++ b/cpu/exec_context.cc @@ -106,6 +106,7 @@ ExecContext::serialize(ostream &os) regs.serialize(os); // thread_num and cpu_id are deterministic from the config SERIALIZE_SCALAR(func_exe_inst); + SERIALIZE_SCALAR(inst); #ifdef FULL_SYSTEM bool ctx = false; @@ -143,6 +144,7 @@ ExecContext::unserialize(Checkpoint *cp, const std::string §ion) regs.unserialize(cp, section); // thread_num and cpu_id are deterministic from the config UNSERIALIZE_SCALAR(func_exe_inst); + UNSERIALIZE_SCALAR(inst); #ifdef FULL_SYSTEM bool ctx; @@ -233,3 +235,16 @@ ExecContext::regStats(const string &name) kernelStats.regStats(name + ".kern"); #endif } + +void +ExecContext::trap(Fault fault) +{ + //TheISA::trap(fault); //One possible way to do it... + + /** @todo: Going to hack it for now. Do a true fixup later. */ +#ifdef FULL_SYSTEM + ev5_trap(fault); +#else + fatal("fault (%d) detected @ PC 0x%08p", fault, readPC()); +#endif +} |