From patchwork Wed Jan 7 15:20:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 42831 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7E69B2055F for ; Wed, 7 Jan 2015 15:32:26 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf898735wib.6 for ; Wed, 07 Jan 2015 07:32:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=IoKwP1hmj8rmigyd2znx5EeM2NAJF9E191I9HkVHS58=; b=ekCIOT1reA+TdrsnESXlJtXzsq5nu+aDtSS6xuTi8g3nOYoBQecr+y8Sez9YKnQyOE K4PvkMiWKGR9fanXAX3V0YtedtuYxf0i38zMQt7Kibt0Y2m4jzy4LuPKMZafG4Hn9X7r 74CgbTU1d1IDyQXEmWqlRUc6rXkXoMO21IB2O4XaS7KFEDHkr/6ZSpK8HSX6RsV8a9up /l7TzygvtviU2a1bFDp78aSNQborO4/BIZmb952xETNi1bsOIbWzRxhPJ6kJxumtfBcX dRKcF9X3ZGAMS6ewhOFvTkB6qpLOK0TUVYtEahLohNENK3e3z71v1/Bt1JnWJlBMnxZY m98Q== X-Gm-Message-State: ALoCoQkcGUf8rf42Pak4bU6MyP9kt1CM6fv5u2YuCsi/WSH1eVSQjc0340GX9Fy1hLUqtJMV5m7F X-Received: by 10.112.219.199 with SMTP id pq7mr381746lbc.9.1420644745740; Wed, 07 Jan 2015 07:32:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.4.8 with SMTP id ca8ls190364lad.0.gmail; Wed, 07 Jan 2015 07:32:25 -0800 (PST) X-Received: by 10.152.2.38 with SMTP id 6mr5639133lar.60.1420644745598; Wed, 07 Jan 2015 07:32:25 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id fb6si3425384lbc.117.2015.01.07.07.32.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Jan 2015 07:32:23 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so4062466lab.11 for ; Wed, 07 Jan 2015 07:32:23 -0800 (PST) X-Received: by 10.112.159.136 with SMTP id xc8mr5561268lbb.98.1420644743826; Wed, 07 Jan 2015 07:32:23 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1517070lbb; Wed, 7 Jan 2015 07:32:23 -0800 (PST) X-Received: by 10.140.35.114 with SMTP id m105mr5146534qgm.79.1420644742301; Wed, 07 Jan 2015 07:32:22 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p19si2345486qgd.27.2015.01.07.07.32.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 Jan 2015 07:32:22 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8sar-0000vt-Eu for patch@linaro.org; Wed, 07 Jan 2015 10:32:21 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8sPq-0005x0-95 for qemu-devel@nongnu.org; Wed, 07 Jan 2015 10:21:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8sPk-0003Du-7d for qemu-devel@nongnu.org; Wed, 07 Jan 2015 10:20:58 -0500 Received: from cantor2.suse.de ([195.135.220.15]:37881 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8sPj-0003C3-KI; Wed, 07 Jan 2015 10:20:51 -0500 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D10DFADB1; Wed, 7 Jan 2015 15:20:50 +0000 (UTC) From: Alexander Graf To: qemu-ppc@nongnu.org Date: Wed, 7 Jan 2015 16:20:41 +0100 Message-Id: <1420644048-16919-31-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1420644048-16919-1-git-send-email-agraf@suse.de> References: <1420644048-16919-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [Qemu-devel] [PULL 30/37] target-ppc: Mark SR() and gen_sync_exception() as !CONFIG_USER_ONLY X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: agraf@suse.de X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell The functions SR() and gen_sync_exception() are only used in softmmu configs; wrap them in #ifndef CONFIG_USER_ONLY to suppress clang warnings on the linux-user builds. Signed-off-by: Peter Maydell Signed-off-by: Alexander Graf --- target-ppc/translate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 58d7db3..6e9ab02 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -331,11 +331,13 @@ static inline void gen_stop_exception(DisasContext *ctx) ctx->exception = POWERPC_EXCP_STOP; } +#ifndef CONFIG_USER_ONLY /* No need to update nip here, as execution flow will change */ static inline void gen_sync_exception(DisasContext *ctx) { ctx->exception = POWERPC_EXCP_SYNC; } +#endif #define GEN_HANDLER(name, opc1, opc2, opc3, inval, type) \ GEN_OPCODE(name, opc1, opc2, opc3, inval, type, PPC_NONE) @@ -437,7 +439,10 @@ EXTRACT_HELPER(ME, 1, 5); EXTRACT_HELPER(TO, 21, 5); EXTRACT_HELPER(CRM, 12, 8); + +#ifndef CONFIG_USER_ONLY EXTRACT_HELPER(SR, 16, 4); +#endif /* mtfsf/mtfsfi */ EXTRACT_HELPER(FPBF, 23, 3);