From patchwork Sun Jun 12 13:14:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ferux X-Patchwork-Id: 100094 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 B3122B70A4 for ; Sun, 12 Jun 2011 23:17:23 +1000 (EST) Received: from localhost ([::1]:53599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVkXY-00029h-VS for incoming@patchwork.ozlabs.org; Sun, 12 Jun 2011 09:17:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVkUv-00029D-Pj for qemu-devel@nongnu.org; Sun, 12 Jun 2011 09:14:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVkUu-00052d-IX for qemu-devel@nongnu.org; Sun, 12 Jun 2011 09:14:37 -0400 Received: from smtp5.mail.ru ([94.100.176.132]:37611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVkUt-00051X-Qw for qemu-devel@nongnu.org; Sun, 12 Jun 2011 09:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=GldANF5tMvmGtYiuvMwDDtODtUX4frG+rhfESPCTyG8=; b=o1pc0vRwf6sqQXYziWlpDJ8PcqQlLsMmuGInl8k7aqVqYFVWWomdNOHBVP1kPFgb7vzFZsWlijOU0hh81EZSz+0to2btuCbluB2x9Z3uuQIJXRzXlEVxzLnkBo8IKxSj; Received: from [109.106.137.198] (port=61668 helo=[192.168.24.37]) by smtp5.mail.ru with asmtp id 1QVkUs-0003bP-00 for qemu-devel@nongnu.org; Sun, 12 Jun 2011 17:14:34 +0400 Message-ID: <4DF4BBBC.8010203@mail.ru> Date: Sun, 12 Jun 2011 17:14:36 +0400 From: ferux User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: qemu-devel@nongnu.org X-Spam: Not detected X-Mras: Ok X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.176.132 Subject: [Qemu-devel] [PATCH] for bug 754635: -d option outs wrong info about sections 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 Patch to correct log output about sections from: start end size prot 00010000-00019000 00009000 r-x 00019000-0007b000 00062000 rw- 00040000-00041000 00001000 --- 00041000-00041800 00000800 rw- 00041800-0005d800 0001c000 r-x 0005d800-0005e800 00001000 rw- to: start end size prot 10000000-10019000 00019000 r-x 10019000-1006b000 00052000 rw- 40000000-40001000 00001000 --- 40001000-40801000 00800000 rw- 40801000-4081d000 0001c000 r-x 4081d000-4081e000 00001000 rw- I described this bug: https://bugs.launchpad.net/qemu/+bug/754635. Signed-off-by: Max Rozhkov Acked-by: Richard Henderson --- if (rc != 0) { return rc; --- qemu-0.14.1/exec.c.orig 2011-06-12 16:14:51.362434004 +0400 +++ qemu-0.14.1/exec.c 2011-06-12 16:15:10.652434003 +0400 @@ -2340,7 +2340,7 @@ int walk_memory_regions(void *priv, walk data.prot = 0; for (i = 0; i < V_L1_SIZE; i++) { - int rc = walk_memory_regions_1(&data, (abi_ulong)i << V_L1_SHIFT, + int rc = walk_memory_regions_1(&data, (abi_ulong)i << (V_L1_SHIFT + TARGET_PAGE_BITS), V_L1_SHIFT / L2_BITS - 1, l1_map + i);