From: Gabe Black Date: Tue, 25 Sep 2007 21:44:12 +0000 (-0700) Subject: X86: Fix for uninitialized variables in stacktrace code. X-Git-Tag: m5_2.0_beta4~89^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3c6f32543f7c7e3a2ef5d70681424fb77e64731;p=gem5.git X86: Fix for uninitialized variables in stacktrace code. --HG-- extra : convert_revision : d19a03d8c14eb93a99f2c1838a9caa1286804c81 --- 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 ®, int &disp) { + reg = 0; + disp = 0; return true; }