Syscalls: Fix a warning turned error about an unused variable in m5.fast.
authorGabe Black <gblack@eecs.umich.edu>
Sat, 31 Oct 2009 20:20:22 +0000 (13:20 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 31 Oct 2009 20:20:22 +0000 (13:20 -0700)
src/sim/syscall_emul.cc

index d25f7b9fa10444119be1b367cf3b0dd2c9abd79c..fae3586a40ef7e5f66019a8a857e4cadccd37e6e 100644 (file)
@@ -52,7 +52,9 @@ using namespace TheISA;
 void
 SyscallDesc::doSyscall(int callnum, LiveProcess *process, ThreadContext *tc)
 {
+#if TRACING_ON
     int index = 0;
+#endif
     DPRINTFR(SyscallVerbose,
              "%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n",
              curTick, tc->getCpuPtr()->name(), name,