From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Weh-0000vH-Tr for qemu-devel@nongnu.org; Wed, 11 May 2016 12:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0Wee-0001Ls-E6 for qemu-devel@nongnu.org; Wed, 11 May 2016 12:06:35 -0400 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:36242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Wed-0001Lo-Jq for qemu-devel@nongnu.org; Wed, 11 May 2016 12:06:32 -0400 Received: by mail-lf0-x22e.google.com with SMTP id u64so54874856lff.3 for ; Wed, 11 May 2016 09:06:29 -0700 (PDT) From: Sergey Fedorov Date: Wed, 11 May 2016 19:06:17 +0300 Message-Id: <1462982777-4513-1-git-send-email-sergey.fedorov@linaro.org> Subject: [Qemu-devel] [PATCH] fixup! tcg: code_bitmap is not used by user-mode emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Sergey Fedorov , Sergey Fedorov , Paolo Bonzini , Peter Crosthwaite , Richard Henderson From: Sergey Fedorov Eliminate 'code_write_count' as well. Signed-off-by: Sergey Fedorov Signed-off-by: Sergey Fedorov --- This series is based on commit 40f646483a11 (cpu-exec: Remove relic orphaned comment) from git://github.com/rth7680/qemu.git tcg-next translate-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate-all.c b/translate-all.c index 345b35a3d2a2..b54f47253122 100644 --- a/translate-all.c +++ b/translate-all.c @@ -72,10 +72,10 @@ typedef struct PageDesc { /* list of TBs intersecting this ram page */ TranslationBlock *first_tb; +#ifdef CONFIG_SOFTMMU /* in order to optimize self modifying code, we count the number of lookups we do to a given page to use a bitmap */ unsigned int code_write_count; -#ifdef CONFIG_SOFTMMU unsigned long *code_bitmap; #else unsigned long flags; @@ -786,8 +786,8 @@ static inline void invalidate_page_bitmap(PageDesc *p) #ifdef CONFIG_SOFTMMU g_free(p->code_bitmap); p->code_bitmap = NULL; -#endif p->code_write_count = 0; +#endif } /* Set to NULL all the 'first_tb' fields in all PageDescs. */ -- 1.9.1