From patchwork Mon Jan 13 07:39:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 309715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8BF482C0079 for ; Mon, 13 Jan 2014 18:43:39 +1100 (EST) Received: from localhost ([::1]:40918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cBN-0006SK-6F for incoming@patchwork.ozlabs.org; Mon, 13 Jan 2014 02:43:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cAu-0006GH-6n for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:43:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2cAl-0004zA-7I for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:43:08 -0500 Received: from mail-qa0-x236.google.com ([2607:f8b0:400d:c00::236]:63594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cAl-0004z6-3E for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:42:59 -0500 Received: by mail-qa0-f54.google.com with SMTP id i13so1299139qae.13 for ; Sun, 12 Jan 2014 23:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HJmgzjARO3skIEk23XlogFeXl31I3qzXtBunDI3v2kY=; b=EbyWEDvc1gsqIzm64liL8J2RcCQbF9FN1hIu0CgrEK2xBkuH+rmsrbfdgroa8FVp/1 ujn/u/AeqcUsZWkbvw6hSdzdh36tHL5HSM5krkFCpx3UxC3otDQ9KmHkTFvmhSpmj7IM FMWKJ1K1QBLj2RK2vFL0kL9mD0Ig1m/CPLY6inv1Zu5mK7vnNHcqlkrp0sDibD5+jFGq Hg59uyv5aOLjwjiPoaMnsmctmX3YLdLeSecX1XjZPj/7axrqIIbf/ETYbWWaGpS6tPpT 8PTgjeYt3MAyohrhEqrfDgRW4Rqvdp1Qi5zzdBJkv5oeDYF/tpSH8pef0nn/NZbUrQeg 0MVA== X-Received: by 10.49.35.112 with SMTP id g16mr36489298qej.13.1389598978739; Sun, 12 Jan 2014 23:42:58 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id d7sm24294366qad.10.2014.01.12.23.42.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 12 Jan 2014 23:42:57 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Mon, 13 Jan 2014 17:39:44 +1000 Message-Id: <1389598802-14977-5-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> References: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::236 Cc: peter.maydell@linaro.org, blauwirbel@gmail.com, aliguori@amazon.com, pcrost@xilinx.com, pbonzini@redhat.com, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v3 04/22] exec: Make memory_region_section_get_iotlb use section AS 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: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index c9724c0..6def6b5 100644 --- a/exec.c +++ b/exec.c @@ -783,7 +783,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env, iotlb |= PHYS_SECTION_ROM; } } else { - iotlb = section - address_space_memory.dispatch->map.sections; + iotlb = section - section->address_space->dispatch->map.sections; iotlb += xlat; }