From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oat7j-0001HQ-FK for qemu-devel@nongnu.org; Mon, 19 Jul 2010 12:23:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oat7i-0001tM-7i for qemu-devel@nongnu.org; Mon, 19 Jul 2010 12:23:23 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:61593) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oat7h-0001t1-Sb for qemu-devel@nongnu.org; Mon, 19 Jul 2010 12:23:22 -0400 From: Stefan Weil Date: Mon, 19 Jul 2010 18:23:17 +0200 Message-Id: <1279556597-6885-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] Declare code_gen_ptr, code_gen_max_blocks 'static' List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Both values are only used in exec.c, so there is no need to make them globally available. Signed-off-by: Stefan Weil --- exec-all.h | 2 -- exec.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/exec-all.h b/exec-all.h index a775582..58b5575 100644 --- a/exec-all.h +++ b/exec-all.h @@ -191,8 +191,6 @@ void tb_link_page(TranslationBlock *tb, void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr); extern TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE]; -extern uint8_t *code_gen_ptr; -extern int code_gen_max_blocks; #if defined(USE_DIRECT_JUMP) diff --git a/exec.c b/exec.c index 4641b3e..868cd7f 100644 --- a/exec.c +++ b/exec.c @@ -80,7 +80,7 @@ #define SMC_BITMAP_USE_THRESHOLD 10 static TranslationBlock *tbs; -int code_gen_max_blocks; +static int code_gen_max_blocks; TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE]; static int nb_tbs; /* any access to the tbs or the page table must use this lock */ @@ -107,7 +107,7 @@ static uint8_t *code_gen_buffer; static unsigned long code_gen_buffer_size; /* threshold to flush the translated code buffer */ static unsigned long code_gen_buffer_max_size; -uint8_t *code_gen_ptr; +static uint8_t *code_gen_ptr; #if !defined(CONFIG_USER_ONLY) int phys_ram_fd; -- 1.7.1