From patchwork Wed Sep 21 10:26:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 115757 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 BE116B6F82 for ; Wed, 21 Sep 2011 20:59:56 +1000 (EST) Received: from localhost ([::1]:46565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0z-000150-Vn for incoming@patchwork.ozlabs.org; Wed, 21 Sep 2011 06:26:53 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0R-0007ar-C2 for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6K0O-0006PS-EK for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:19 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:35538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0O-0006PB-7H for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:16 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8LAQF6s031689 for ; Wed, 21 Sep 2011 10:26:15 GMT Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8LAQFir2416782 for ; Wed, 21 Sep 2011 11:26:15 +0100 Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8LAQFjR000524 for ; Wed, 21 Sep 2011 04:26:15 -0600 Received: from localhost ([9.79.3.245]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8LAQEdG000519; Wed, 21 Sep 2011 04:26:14 -0600 From: Stefan Hajnoczi To: Date: Wed, 21 Sep 2011 11:26:05 +0100 Message-Id: <1316600766-5541-8-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.162 Cc: Anthony Liguori , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 7/8] Remove qemu_host_page_bits 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 From: Stefan Weil It was introduced with commit 54936004fddc52c321cb3f9a9a51140e782bed5d as host_page_bits but never used. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- cpu-all.h | 1 - exec.c | 4 ---- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index f5c82cd..42a5fa0 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -290,7 +290,6 @@ extern unsigned long reserved_va; /* ??? These should be the larger of unsigned long and target_ulong. */ extern unsigned long qemu_real_host_page_size; -extern unsigned long qemu_host_page_bits; extern unsigned long qemu_host_page_size; extern unsigned long qemu_host_page_mask; diff --git a/exec.c b/exec.c index c1e045d..1e6f732 100644 --- a/exec.c +++ b/exec.c @@ -183,7 +183,6 @@ typedef struct PageDesc { #define V_L1_SHIFT (L1_MAP_ADDR_SPACE_BITS - TARGET_PAGE_BITS - V_L1_BITS) unsigned long qemu_real_host_page_size; -unsigned long qemu_host_page_bits; unsigned long qemu_host_page_size; unsigned long qemu_host_page_mask; @@ -274,9 +273,6 @@ static void page_init(void) qemu_host_page_size = qemu_real_host_page_size; if (qemu_host_page_size < TARGET_PAGE_SIZE) qemu_host_page_size = TARGET_PAGE_SIZE; - qemu_host_page_bits = 0; - while ((1 << qemu_host_page_bits) < qemu_host_page_size) - qemu_host_page_bits++; qemu_host_page_mask = ~(qemu_host_page_size - 1); #if defined(CONFIG_BSD) && defined(CONFIG_USER_ONLY)