Received: from [140.186.70.92] (port=35645 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmleF-0002RM-Fo for qemu-devel@nongnu.org; Tue, 08 Feb 2011 06:22:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmleD-0007Op-7n for qemu-devel@nongnu.org; Tue, 08 Feb 2011 06:22:19 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:49284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmleD-0007OV-3L for qemu-devel@nongnu.org; Tue, 08 Feb 2011 06:22:17 -0500 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 27663CB02D1 for ; Tue, 8 Feb 2011 12:22:16 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8yI0tjvrD+NB for ; Tue, 8 Feb 2011 12:22:16 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) by mel.act-europe.fr (Postfix) with ESMTP id 0DE47CB02B1 for ; Tue, 8 Feb 2011 12:22:16 +0100 (CET) From: Tristan Gingold Date: Tue, 8 Feb 2011 12:22:15 +0100 Message-Id: <1297164135-30510-1-git-send-email-gingold@adacore.com> Subject: [Qemu-devel] [PATCH] Make tb_alloc static. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This function is only used within exec.c, so no need to make it public. Signed-off-by: Tristan Gingold --- exec-all.h | 1 - exec.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exec-all.h b/exec-all.h index 81497c0..c062693 100644 --- a/exec-all.h +++ b/exec-all.h @@ -182,7 +182,6 @@ static inline unsigned int tb_phys_hash_func(tb_page_addr_t pc) return (pc >> 2) & (CODE_GEN_PHYS_HASH_SIZE - 1); } -TranslationBlock *tb_alloc(target_ulong pc); void tb_free(TranslationBlock *tb); void tb_flush(CPUState *env); void tb_link_page(TranslationBlock *tb, diff --git a/exec.c b/exec.c index 477199b..1c59d0b 100644 --- a/exec.c +++ b/exec.c @@ -221,6 +221,8 @@ static int tlb_flush_count; static int tb_flush_count; static int tb_phys_invalidate_count; +static TranslationBlock *tb_alloc(target_ulong pc); + #ifdef _WIN32 static void map_exec(void *addr, long size) { @@ -1229,7 +1231,7 @@ static inline void tb_alloc_page(TranslationBlock *tb, /* Allocate a new translation block. Flush the translation buffer if too many translation blocks or too much generated code. */ -TranslationBlock *tb_alloc(target_ulong pc) +static TranslationBlock *tb_alloc(target_ulong pc) { TranslationBlock *tb; -- 1.7.3.GIT