From patchwork Sat Sep 17 20:00:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 115165 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 61FAEB70C0 for ; Sun, 18 Sep 2011 06:21:09 +1000 (EST) Received: from localhost ([::1]:60210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R515F-0004a4-JZ for incoming@patchwork.ozlabs.org; Sat, 17 Sep 2011 16:01:53 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R514H-0001oR-Os for qemu-devel@nongnu.org; Sat, 17 Sep 2011 16:00:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R514G-0007jp-Kt for qemu-devel@nongnu.org; Sat, 17 Sep 2011 16:00:53 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:56024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R514G-0007jV-Fb for qemu-devel@nongnu.org; Sat, 17 Sep 2011 16:00:52 -0400 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id AD6477283383; Sat, 17 Sep 2011 22:00:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at weilnetz.de Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lX9XgeDwFEm5; Sat, 17 Sep 2011 22:00:50 +0200 (CEST) Received: from flocke.weilnetz.de (p5086E8FB.dip.t-dialin.net [80.134.232.251]) by v220110690675601.yourvserver.net (Postfix) with ESMTPSA id B6E9E7283381; Sat, 17 Sep 2011 22:00:46 +0200 (CEST) Received: from stefan by flocke.weilnetz.de with local (Exim 4.72) (envelope-from ) id 1R514A-0004ti-7W; Sat, 17 Sep 2011 22:00:46 +0200 From: Stefan Weil To: QEMU Developers Date: Sat, 17 Sep 2011 22:00:29 +0200 Message-Id: <1316289634-18786-3-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <4E74FC29.1050003@mail.berlios.de> References: <4E74FC29.1050003@mail.berlios.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 78.47.199.172 Subject: [Qemu-devel] [PATCH 3/8] tcg: Add forward declarations for local functions 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 These functions are defined in the tcg target specific file tcg-target.c. The forward declarations assert that every tcg target uses the same function prototype. Signed-off-by: Stefan Weil --- tcg/tcg.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 411f971..bdd7a67 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -63,11 +63,27 @@ #error GUEST_BASE not supported on this host. #endif +/* Forward declarations for functions declared in tcg-target.c and used here. */ static void tcg_target_init(TCGContext *s); static void tcg_target_qemu_prologue(TCGContext *s); static void patch_reloc(uint8_t *code_ptr, int type, tcg_target_long value, tcg_target_long addend); +/* Forward declarations for functions declared and used in tcg-target.c. */ +static int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str); +static void tcg_out_ld(TCGContext *s, TCGType type, int ret, int arg1, + tcg_target_long arg2); +static void tcg_out_mov(TCGContext *s, TCGType type, int ret, int arg); +static void tcg_out_movi(TCGContext *s, TCGType type, + int ret, tcg_target_long arg); +static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, + const int *const_args); +static void tcg_out_st(TCGContext *s, TCGType type, int arg, int arg1, + tcg_target_long arg2); +static int tcg_target_const_match(tcg_target_long val, + const TCGArgConstraint *arg_ct); +static int tcg_target_get_call_iarg_regs_count(int flags); + TCGOpDef tcg_op_defs[] = { #define DEF(s, oargs, iargs, cargs, flags) { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags }, #include "tcg-opc.h"