summaryrefslogtreecommitdiff
path: root/src/arch/alpha
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2009-02-26 19:29:17 -0500
committerAli Saidi <saidi@eecs.umich.edu>2009-02-26 19:29:17 -0500
commitd447ccb2c61a9225e5663ac29c999ac0a52a412f (patch)
tree4bec20ac0e8d9d3fcc2c3b0166733d24e45d49cc /src/arch/alpha
parent6fd4bc34a154601ba0a74e41875094c20076e091 (diff)
downloadgem5-d447ccb2c61a9225e5663ac29c999ac0a52a412f.tar.xz
CPA: Add code to automatically record function symbols as CPU executes.
Diffstat (limited to 'src/arch/alpha')
-rw-r--r--src/arch/alpha/ev5.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/alpha/ev5.cc b/src/arch/alpha/ev5.cc
index b3ef8f5d8..02497e282 100644
--- a/src/arch/alpha/ev5.cc
+++ b/src/arch/alpha/ev5.cc
@@ -35,6 +35,7 @@
#include "arch/alpha/osfpal.hh"
#include "arch/alpha/tlb.hh"
#include "arch/alpha/kgdb.h"
+#include "base/cp_annotate.hh"
#include "base/debug.hh"
#include "base/remote_gdb.hh"
#include "base/stats/events.hh"
@@ -560,6 +561,8 @@ SimpleThread::hwrei()
setNextPC(readMiscRegNoEffect(IPR_EXC_ADDR));
+ CPA::cpa()->swAutoBegin(tc, readNextPC());
+
if (!misspeculating()) {
if (kernelStats)
kernelStats->hwrei();