From patchwork Thu May 26 18:05:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 97605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D5150B6F8D for ; Fri, 27 May 2011 04:06:06 +1000 (EST) Received: from localhost ([::1]:48424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPewd-00053L-AO for incoming@patchwork.ozlabs.org; Thu, 26 May 2011 14:06:03 -0400 Received: from eggs.gnu.org ([140.186.70.92]:42884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPewX-00053A-AO for qemu-devel@nongnu.org; Thu, 26 May 2011 14:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPewW-0000Ag-Fs for qemu-devel@nongnu.org; Thu, 26 May 2011 14:05:57 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:50659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPewW-0000AS-8R for qemu-devel@nongnu.org; Thu, 26 May 2011 14:05:56 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1QPewT-0000xe-PG; Thu, 26 May 2011 19:05:53 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 26 May 2011 19:05:53 +0100 Message-Id: <1306433153-3671-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Alexander Graf , patches@linaro.org Subject: [Qemu-devel] [PATCH] target-ppc: Fix compilation error with --enable-debug 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 The PPC helper functions booke206_tlbflush and booke_setpid both take an i32 argument, so we need to use TCGv_i32 rather than TCGv, to avoid a compilation failure when compiling in debug mode. Signed-off-by: Peter Maydell --- target-ppc/translate_init.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index b511afa..d11532c 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -1367,16 +1367,16 @@ static void spr_write_e500_l1csr0 (void *opaque, int sprn, int gprn) static void spr_write_booke206_mmucsr0 (void *opaque, int sprn, int gprn) { - TCGv t0 = tcg_const_i32(sprn); + TCGv_i32 t0 = tcg_const_i32(sprn); gen_helper_booke206_tlbflush(t0); - tcg_temp_free(t0); + tcg_temp_free_i32(t0); } static void spr_write_booke_pid (void *opaque, int sprn, int gprn) { - TCGv t0 = tcg_const_i32(sprn); + TCGv_i32 t0 = tcg_const_i32(sprn); gen_helper_booke_setpid(t0, cpu_gpr[gprn]); - tcg_temp_free(t0); + tcg_temp_free_i32(t0); } #endif