From patchwork Wed Oct 15 09:54:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Alrae X-Patchwork-Id: 38773 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B694F20973 for ; Wed, 15 Oct 2014 10:13:23 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b57sf649270eek.0 for ; Wed, 15 Oct 2014 03:13:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version: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:content-type; bh=s/3Lel9m/4do00N0xLcdIyMn0Z67CbZ/mvWMvcSdLIE=; b=NjLm/RD4mfLZD6W+A+ycdXndq8DSEI9x0lvlWbzZlsQkN2mti1PxwJyjCS8rRJECWS CvS6+wk135hhFqTtsIyB01NQKe4FN9hZZSfEDyBlXy7+ksqI1DM+XmNpKzrAPeJiX9uC zSTU4PyiixkGUMdB5DIT6g2XgD4c3oVN3AlgTWlw7JY6elY0nEDFBryCosep8KGiPI3w yM84+B53fIGHo9uLF1gSGYz6kQ3dnb0h092iavdGulFRp3wRz0cKuFrjiNi8jpcnJvNk ywmrwtU/dMRd7wKk2xr5cnl8QrKODyO1q4S/lvrY+AnX/yq7klrBrIxl4UYc2LcF3UgY vc9w== X-Gm-Message-State: ALoCoQnN6mWtZBMAO8G+B7nnnxPMnjEVYkbP5GNtEBZSJYzky1rhWT9C/PiqTDAze3E2M5U2YX6H X-Received: by 10.194.242.36 with SMTP id wn4mr1487170wjc.4.1413368002869; Wed, 15 Oct 2014 03:13:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.226 with SMTP id v2ls42409lav.50.gmail; Wed, 15 Oct 2014 03:13:22 -0700 (PDT) X-Received: by 10.112.148.199 with SMTP id tu7mr11333496lbb.7.1413368002729; Wed, 15 Oct 2014 03:13:22 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by mx.google.com with ESMTPS id g1si29887972lbc.52.2014.10.15.03.13.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Oct 2014 03:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id s18so762897lam.9 for ; Wed, 15 Oct 2014 03:13:22 -0700 (PDT) X-Received: by 10.112.167.38 with SMTP id zl6mr11256106lbb.34.1413368002591; Wed, 15 Oct 2014 03:13:22 -0700 (PDT) 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.84.229 with SMTP id c5csp563442lbz; Wed, 15 Oct 2014 03:13:21 -0700 (PDT) X-Received: by 10.224.120.1 with SMTP id b1mr14228940qar.19.1413368001432; Wed, 15 Oct 2014 03:13:21 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c3si34184690qch.36.2014.10.15.03.13.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 Oct 2014 03:13:21 -0700 (PDT) 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]:43514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLa4-0004uh-L2 for patch@linaro.org; Wed, 15 Oct 2014 06:13:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLIW-0000lO-8e for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeLIR-0000mT-Q1 for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:12 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:42822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLIR-0000mG-Km for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:07 -0400 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id A2F149E86511A; Wed, 15 Oct 2014 10:55:03 +0100 (IST) Received: from localhost.localdomain (192.168.14.85) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 15 Oct 2014 10:55:05 +0100 From: Leon Alrae To: Date: Wed, 15 Oct 2014 10:54:18 +0100 Message-ID: <1413366860-7833-27-git-send-email-leon.alrae@imgtec.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1413366860-7833-1-git-send-email-leon.alrae@imgtec.com> References: <1413366860-7833-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.14.85] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.59.15.196 Cc: Peter Maydell Subject: [Qemu-devel] [PULL 26/28] target-mips/translate.c: Add ifdef guard around check_mips64() 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: patch@linaro.org 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.50 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 function check_mips64() is only used if TARGET_MIPS64 is defined; add an ifdef guard to its definition to avoid warnings about it being unused in other configurations. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Leon Alrae --- target-mips/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index 8b62e66..c23cb94 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1548,6 +1548,7 @@ static inline void check_insn_opc_removed(DisasContext *ctx, int flags) } } +#ifdef TARGET_MIPS64 /* This code generates a "reserved instruction" exception if 64-bit instructions are not enabled. */ static inline void check_mips_64(DisasContext *ctx) @@ -1555,6 +1556,7 @@ static inline void check_mips_64(DisasContext *ctx) if (unlikely(!(ctx->hflags & MIPS_HFLAG_64))) generate_exception(ctx, EXCP_RI); } +#endif /* Define small wrappers for gen_load_fpr* so that we have a uniform calling interface for 32 and 64-bit FPRs. No sense in changing