From patchwork Fri Nov 22 15:15:55 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: 293495 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AF8892C009A for ; Sat, 23 Nov 2013 02:21:32 +1100 (EST) Received: from localhost ([::1]:39428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsXx-0003Su-UK for incoming@patchwork.ozlabs.org; Fri, 22 Nov 2013 10:21:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsXI-0003M0-PH for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjsXA-0000Aq-7D for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:48 -0500 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:40827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsX9-0000Ag-Mi for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:39 -0500 Received: by mail-la0-f44.google.com with SMTP id ep20so1058929lab.31 for ; Fri, 22 Nov 2013 07:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=xWfUcCWn4ZgoZdb2jZKZcbrQLxg4U6DCrQouzU3uzbs=; b=JosQ6IO/HELR0jWQImAsPMz6Wrlp0h6WcstK/XWHgnyQAsSxt4SaKYIniRESf8KZ1Q kG46xfuZbCbgetfN4eeX+Uc2V4H61P021Q4gmVyPjgV5SeipnERZmkibF34vgisTYpB6 rTlZUczaJifdDpG1GNc4eeKqwS3/bhD+OqmgOM6I62iRYcqukuzGm8J/TCRTS7v2nCKm Ny/6qcw7rEZBOlsSJbAIWdh/t5ntQdNfUdXsGh3POW0OHwOJwBb3Gukp1JhQUxF04J0V xcl6zB+pmQb9jh+ObxRyvqsmZ0sWkZkZ5elzNKvHsOBmM1whR2Zv8v813IVa2HioZD/w tBuQ== X-Received: by 10.152.87.105 with SMTP id w9mr10076063laz.27.1385133638741; Fri, 22 Nov 2013 07:20:38 -0800 (PST) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id vz9sm27290622lbb.17.2013.11.22.07.20.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Nov 2013 07:20:31 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Fri, 22 Nov 2013 16:15:55 +0100 Message-Id: <1385133359-13770-5-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> References: <1385133359-13770-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: 2a00:1450:4010:c03::22c Subject: [Qemu-devel] [RFC PATCH 4/8] 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 05df217..0162eb3 100644 --- a/exec.c +++ b/exec.c @@ -709,7 +709,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env, iotlb |= PHYS_SECTION_ROM; } } else { - iotlb = section - address_space_memory.dispatch->sections; + iotlb = section - section->address_space->dispatch->sections; iotlb += xlat; }