From patchwork Sat Feb 6 16:43:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 44708 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B98FCB7CFB for ; Sun, 7 Feb 2010 03:49:40 +1100 (EST) Received: from localhost ([127.0.0.1]:52743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndnnf-00079Y-MA for incoming@patchwork.ozlabs.org; Sat, 06 Feb 2010 11:46:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ndnlc-00070Q-O6 for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:20 -0500 Received: from [199.232.76.173] (port=59318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndnlc-00070A-8t for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ndnla-000570-BE for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:19 -0500 Received: from mx20.gnu.org ([199.232.41.8]:39492) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NdnlZ-00050i-BO for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:44:17 -0500 Received: from hall.aurel32.net ([88.191.82.174]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdnlC-0005k7-KQ for qemu-devel@nongnu.org; Sat, 06 Feb 2010 11:43:54 -0500 Received: from [2002:52e8:2fb:1:21e:8cff:feb0:693b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NdnlC-0007rE-9q; Sat, 06 Feb 2010 17:43:54 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.71) (envelope-from ) id 1NdnlB-00065p-55; Sat, 06 Feb 2010 17:43:53 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Sat, 6 Feb 2010 17:43:42 +0100 Message-Id: <1265474623-23367-8-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1265474623-23367-1-git-send-email-aurelien@aurel32.net> References: <1265474623-23367-1-git-send-email-aurelien@aurel32.net> X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Aurelien Jarno Subject: [Qemu-devel] [PATCH 7/8] target-sh4: MMU: remove dead code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Aurelien Jarno --- target-sh4/helper.c | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 2d00dfa..9b3a259 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -261,24 +261,6 @@ static int find_tlb_entry(CPUState * env, target_ulong address, continue; /* Invalid entry */ if (!entries[i].sh && use_asid && entries[i].asid != asid) continue; /* Bad ASID */ -#if 0 - switch (entries[i].sz) { - case 0: - size = 1024; /* 1kB */ - break; - case 1: - size = 4 * 1024; /* 4kB */ - break; - case 2: - size = 64 * 1024; /* 64kB */ - break; - case 3: - size = 1024 * 1024; /* 1MB */ - break; - default: - assert(0); - } -#endif start = (entries[i].vpn << 10) & ~(entries[i].size - 1); end = start + entries[i].size - 1; if (address >= start && address <= end) { /* Match */