summaryrefslogtreecommitdiff
path: root/util/statetrace/tracechild.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-03-05 20:54:20 -0500
committerGabe Black <gblack@eecs.umich.edu>2007-03-05 20:54:20 -0500
commit9b72ff82907a1f3b0b740dcbceb462fb0fd7d8c3 (patch)
tree7943858c2bf18c9f8cb45267b193687badade473 /util/statetrace/tracechild.hh
parent68ad1533096ab736c534cb29364a1a93e1010306 (diff)
downloadgem5-9b72ff82907a1f3b0b740dcbceb462fb0fd7d8c3.tar.xz
Fixing statetrace to work with 32 bit SPARC processes, as well as rewritting it's single stepping code.
--HG-- extra : convert_revision : 69b1668a850519ab98b02c525ec41ff727eb6036
Diffstat (limited to 'util/statetrace/tracechild.hh')
-rw-r--r--util/statetrace/tracechild.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/statetrace/tracechild.hh b/util/statetrace/tracechild.hh
index f9c23b781..84fa595d8 100644
--- a/util/statetrace/tracechild.hh
+++ b/util/statetrace/tracechild.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 The Regents of The University of Michigan
+ * Copyright (c) 2006-2007 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,11 +37,13 @@ class TraceChild : public RegState
{
protected:
int pid;
+ uint64_t instructions;
bool tracing;
public:
- TraceChild() : tracing(false)
+ TraceChild() : tracing(false), instructions(0)
{;}
- virtual bool startTracing(const char * pathToFile, const char * arg);
+ virtual bool startTracing(const char * pathToFile,
+ char * const argv[]);
virtual bool stopTracing();
virtual bool step();
virtual uint64_t getPC() = 0;