From patchwork Mon Dec 16 08:05:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 301501 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 D76002C009F for ; Mon, 16 Dec 2013 19:09:51 +1100 (EST) Received: from localhost ([::1]:54352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTFM-0003pg-Qh for incoming@patchwork.ozlabs.org; Mon, 16 Dec 2013 03:09:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTEl-0003gQ-3f for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:09:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsTEe-0003C2-Pa for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:09:11 -0500 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:40512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTEe-0003Bq-IV for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:09:04 -0500 Received: by mail-pa0-f51.google.com with SMTP id fa1so2612415pad.24 for ; Mon, 16 Dec 2013 00:09:03 -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=hyqsJD6qwSunxXANi/C1PGeeK12rzw/KO9uGzzHrLNs=; b=JW7Xtx11fpB5wqQwWX/QURRa6s68aglOAKv8/K2a4bozNBvxQ3jmamkq6M4+9dvehU Dt2M9E7vDqIhPwMuRLn8ix80TfNdN92RDcG1zrRDTm7Yr4ut4LJNfOG9ncLCwiy80GDB mngnV92HJvUN1GWcukdYoy2KAyzvN0F5h1bwm5U8tpSFeoJL+0lZreXDD0x7pRhwTuML J2jIszMMLTgin+mY6cKpfWtMEUSMDibZOB0fNIgpJ7VGN/AD8AWCuv/dg7eODxcSwjCC Azney/5srjRAdDgDO580snwqzgD5sAs9lCmwvAXSM3pdDdB2PZnXpdl4GwiQxXVvIvsG R//w== X-Received: by 10.66.180.200 with SMTP id dq8mr18776454pac.104.1387181343775; Mon, 16 Dec 2013 00:09:03 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id ef10sm33309169pac.1.2013.12.16.00.09.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Dec 2013 00:09:03 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Mon, 16 Dec 2013 18:05:52 +1000 Message-Id: <1387181170-23267-5-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1387181170-23267-1-git-send-email-edgar.iglesias@gmail.com> References: <1387181170-23267-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:400e:c03::233 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 v1 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 6d88931..803bbde 100644 --- a/exec.c +++ b/exec.c @@ -782,7 +782,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; }