From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3YCc-0007O0-H5 for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:45:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3YCb-00082c-L4 for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:45:18 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3YCb-00082V-E9 for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:45:17 -0500 From: Peter Maydell Date: Tue, 23 Dec 2014 22:18:19 +0000 Message-Id: <1419373100-17690-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1419373100-17690-1-git-send-email-peter.maydell@linaro.org> References: <1419373100-17690-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/2] target-s390x: Mark op_csp() as !CONFIG_USER_ONLY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , Christian Borntraeger , Alexander Graf , Richard Henderson The function op_csp() is only used in the softmmu configs; wrap it in an #ifndef CONFIG_USER_ONLY to avoid clang warnings on the linux-user builds. Signed-off-by: Peter Maydell --- target-s390x/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index dbf1993..2802530 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -317,12 +317,14 @@ static inline void gen_illegal_opcode(DisasContext *s) gen_program_exception(s, PGM_SPECIFICATION); } +#ifndef CONFIG_USER_ONLY static inline void check_privileged(DisasContext *s) { if (s->tb->flags & (PSW_MASK_PSTATE >> 32)) { gen_program_exception(s, PGM_PRIVILEGED); } } +#endif static TCGv_i64 get_address(DisasContext *s, int x2, int b2, int d2) { -- 1.9.1