summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-10-31 13:20:22 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-10-31 13:20:22 -0700
commitd6ff7929b30cde7bce1b3f3be89e1ef6eda82a2d (patch)
tree08b92db5b5759279e5fe9c1a0fc51aa772dc452a
parent3f722b991fcb33ca21330501960406a8a58e2be2 (diff)
downloadgem5-d6ff7929b30cde7bce1b3f3be89e1ef6eda82a2d.tar.xz
Syscalls: Fix a warning turned error about an unused variable in m5.fast.
-rw-r--r--src/sim/syscall_emul.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index d25f7b9fa..fae3586a4 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -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,