sim: fix unused cpu_nr warnings
authorMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 20:39:38 +0000 (20:39 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 20:39:38 +0000 (20:39 +0000)
commit15f3c2de23e579e8965294c24de2a0bb5971273b
treeef0f89f6d742740d12119c86354ffcfce3aa2d56
parentfb0cc53ef61e1f7302f886a07fef53a908a1795d
sim: fix unused cpu_nr warnings

The trace_option_handler() function only uses cpu_nr when the
SIM_HAVE_ADDR_RANGE define is enabled.  So move the decl down
to where the code exists.  Otherwise GCC warns:
sim-trace.c: In function 'trace_option_handler':
sim-trace.c:236: warning: unused variable 'cpu_nr'
sim/common/ChangeLog
sim/common/sim-trace.c