From patchwork Sat Jun 23 23:06:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 166840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B8DB3B6F9F for ; Sun, 24 Jun 2012 11:28:27 +1000 (EST) Received: from localhost ([::1]:53613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiZSG-0001Mt-T1 for incoming@patchwork.ozlabs.org; Sat, 23 Jun 2012 19:09:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiZQv-0007Fw-Mo for qemu-devel@nongnu.org; Sat, 23 Jun 2012 19:08:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiZQs-0002IY-Fx for qemu-devel@nongnu.org; Sat, 23 Jun 2012 19:08:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34831 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiZQs-0002I2-92; Sat, 23 Jun 2012 19:07:58 -0400 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 0598F99430; Sun, 24 Jun 2012 01:07:57 +0200 (CEST) From: Alexander Graf To: qemu-devel qemu-devel Date: Sun, 24 Jun 2012 01:06:46 +0200 Message-Id: <1340492856-21126-23-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1340492856-21126-1-git-send-email-agraf@suse.de> References: <1340492856-21126-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: Blue Swirl , qemu-ppc Mailing List , =?utf-8?q?Andreas=20F=C3=A4rber?= , Aurelien Jarno Subject: [Qemu-devel] [PATCH 22/72] ppc: Make hbrev table const 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Blue Swirl Lookup table 'hbrev' is never written to, so add a 'const' qualifier. Signed-off-by: Blue Swirl Signed-off-by: Alexander Graf Signed-off-by: Andreas Färber Signed-off-by: Alexander Graf --- target-ppc/int_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c index 3173f11..f638b2a 100644 --- a/target-ppc/int_helper.c +++ b/target-ppc/int_helper.c @@ -1484,7 +1484,7 @@ VUPK(lsh, s32, s16, UPKLO) /*****************************************************************************/ /* SPE extension helpers */ /* Use a table to make this quicker */ -static uint8_t hbrev[16] = { +static const uint8_t hbrev[16] = { 0x0, 0x8, 0x4, 0xC, 0x2, 0xA, 0x6, 0xE, 0x1, 0x9, 0x5, 0xD, 0x3, 0xB, 0x7, 0xF, };