summaryrefslogtreecommitdiff
path: root/src/arch/x86/stacktrace.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-09-25 14:44:12 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-09-25 14:44:12 -0700
commitb3c6f32543f7c7e3a2ef5d70681424fb77e64731 (patch)
tree674f9741f86a9a089c89f2873de1b163039f4cab /src/arch/x86/stacktrace.cc
parent418ddf43e645133b3693ab8bf2e56656efcf1ebf (diff)
downloadgem5-b3c6f32543f7c7e3a2ef5d70681424fb77e64731.tar.xz
X86: Fix for uninitialized variables in stacktrace code.
--HG-- extra : convert_revision : d19a03d8c14eb93a99f2c1838a9caa1286804c81
Diffstat (limited to 'src/arch/x86/stacktrace.cc')
-rw-r--r--src/arch/x86/stacktrace.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/stacktrace.cc b/src/arch/x86/stacktrace.cc
index bf7059dea..300e8dcd0 100644
--- a/src/arch/x86/stacktrace.cc
+++ b/src/arch/x86/stacktrace.cc
@@ -154,12 +154,15 @@ namespace X86ISA
bool
StackTrace::decodeStack(MachInst inst, int &disp)
{
+ disp = 0;
return true;
}
bool
StackTrace::decodeSave(MachInst inst, int &reg, int &disp)
{
+ reg = 0;
+ disp = 0;
return true;
}