cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / profile.cc
index 5f6ca53c3311447e5918cf2a1e8c844bf10812bb..79ae22ca1054d7f4cdb3556564a3754ba0937d10 100644 (file)
 
 #include <string>
 
+#include "base/loader/symtab.hh"
 #include "base/bitfield.hh"
 #include "base/callback.hh"
 #include "base/statistics.hh"
 #include "base/trace.hh"
-#include "base/loader/symtab.hh"
 #include "cpu/base.hh"
-#include "cpu/exec_context.hh"
 #include "cpu/profile.hh"
+#include "cpu/thread_context.hh"
 
 using namespace std;
 
@@ -120,7 +120,7 @@ FunctionProfile::clear()
 }
 
 void
-FunctionProfile::dump(ExecContext *xc, ostream &os) const
+FunctionProfile::dump(ThreadContext *tc, ostream &os) const
 {
     ccprintf(os, ">>>PC data\n");
     map<Addr, Counter>::const_iterator i, end = pc_count.end();