diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-05 20:54:20 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-05 20:54:20 -0500 |
commit | 9b72ff82907a1f3b0b740dcbceb462fb0fd7d8c3 (patch) | |
tree | 7943858c2bf18c9f8cb45267b193687badade473 /util/statetrace/arch/tracechild_sparc.hh | |
parent | 68ad1533096ab736c534cb29364a1a93e1010306 (diff) | |
download | gem5-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.hh | 8 |
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); |