summaryrefslogtreecommitdiff
path: root/util/statetrace/arch/tracechild_sparc.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/arch/tracechild_sparc.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/arch/tracechild_sparc.hh')
-rw-r--r--util/statetrace/arch/tracechild_sparc.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/statetrace/arch/tracechild_sparc.hh b/util/statetrace/arch/tracechild_sparc.hh
index 80770211a..8b4ff9aae 100644
--- a/util/statetrace/arch/tracechild_sparc.hh
+++ b/util/statetrace/arch/tracechild_sparc.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
@@ -78,6 +78,12 @@ private:
int64_t oldInputs[8];
bool regDiffSinceUpdate[numregs];
+ //This calculates where the pc might go after the current instruction.
+ //while this equals npc for most instructions, it doesn't for all of
+ //them. The return value is the number of actual potential targets.
+ int getTargets(uint32_t inst, uint64_t pc, uint64_t npc,
+ uint64_t &target1, uint64_t &target2);
+
protected:
bool update(int pid);