tcg-ppc64: Fix compile errors for userspace only builds with gcc 4.6
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 30 Oct 2011 19:57:33 +0000 (19:57 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 11 Nov 2011 16:33:58 +0000 (17:33 +0100)
commit5fcc5bbffc5c360d7189081a2fdeba3bb84eb555
tree29c5bc6b592ad0c7516df1228762fb70e2e0da25
parent4c76a52496dce04e367bf04b8df0f045b4660dae
tcg-ppc64: Fix compile errors for userspace only builds with gcc 4.6

tcg/ppc64/tcg-target.c has a couple of places where variables are set
unconditionally, but otherwise used only for softmmu builds, not
userspace only builds.  This causes compiler warnings (which are fatal
by default) when compiling for a ppc64 host with gcc 4.6.  This patch
fixes the problem by moving the code which defines and sets the
variables into the CONFIG_SOFTMMU guarded regions.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
tcg/ppc64/tcg-target.c