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)
commit9df3b45dd4e6e5a856a08e5c7799a3434e9e5ccf
tree29c5bc6b592ad0c7516df1228762fb70e2e0da25
parentd43b45e220ae82081e389ae113f6f03d9294fdcf
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