From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXXt-0004HO-Iu for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:37:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWXXs-0006Ur-1E for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:36:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXXr-0006Uk-KD for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:36:55 -0400 Date: Tue, 14 Jun 2011 20:36:26 +0300 From: "Michael S. Tsirkin" Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 09/10] exec: remove unused variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Alexander Graf , Anthony Liguori , Marcelo Tosatti , Gerd Hoffmann , Stefan Hajnoczi , kvm@vger.kernel.org, "Michael S. Tsirkin" , Jan Kiszka , Riku Voipio , Christoph Hellwig , Blue Swirl , Alex Williamson , Isaku Yamahata , Paul Brook , Paolo Bonzini , Avi Kivity , Aurelien Jarno , Richard Henderson Signed-off-by: Michael S. Tsirkin --- exec.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index 81808f4..b784f08 100644 --- a/exec.c +++ b/exec.c @@ -1207,12 +1207,16 @@ static inline void tb_alloc_page(TranslationBlock *tb, unsigned int n, tb_page_addr_t page_addr) { PageDesc *p; +#if !defined(CONFIG_USER_ONLY) TranslationBlock *last_first_tb; +#endif tb->page_addr[n] = page_addr; p = page_find_alloc(page_addr >> TARGET_PAGE_BITS, 1); tb->page_next[n] = p->first_tb; +#if !defined(CONFIG_USER_ONLY) last_first_tb = p->first_tb; +#endif p->first_tb = (TranslationBlock *)((long)tb | n); invalidate_page_bitmap(p); -- 1.7.5.53.gc233e