From patchwork Mon Feb 3 09:44:32 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: 316094 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 CF3392C0086 for ; Mon, 3 Feb 2014 20:49:24 +1100 (EST) Received: from localhost ([::1]:45199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAG9a-0006JZ-PJ for incoming@patchwork.ozlabs.org; Mon, 03 Feb 2014 04:49:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAG8A-0004ds-JA for qemu-devel@nongnu.org; Mon, 03 Feb 2014 04:48:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAG84-00089B-Ox for qemu-devel@nongnu.org; Mon, 03 Feb 2014 04:47:54 -0500 Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:60843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAG84-000896-I4 for qemu-devel@nongnu.org; Mon, 03 Feb 2014 04:47:48 -0500 Received: by mail-qc0-f179.google.com with SMTP id e16so10620230qcx.24 for ; Mon, 03 Feb 2014 01:47:48 -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=XfzuuABp0ITWrb+hmqbZLoQKsp0F3kfqVyWZXjkqe/0=; b=eKXqs5hKV79vw1iNdmOM0GU6l8poSWEaQGq2L8xZ+iKuQ0kaQEOxXRPSpbL+MFdiqm n/Y9XOXAogfZOn1paECuUr5A+JE3CRa5396HYJ9zd5kb+IMSsKuMWyKgJyKJpODA96r5 GOGwPgoNmD7/z9PmhYrtpcEtUliNeVpD51n0b01Zw0jC0dud3LReWrjelKXOK4Wf60hm xh0ljU8y3V7Z49+hupsxDKS2YaMg8BrEBR6H8hxAsewOhZwaB16cax5icjDd7l89N4a3 LXRuYkR4SW2jSmOBwziukcBsT3qvXrrrsCiMtGq6MGjJ5I/Ww5lQ6KE7OaUYNHLMCywi lihA== X-Received: by 10.224.129.138 with SMTP id o10mr54737191qas.13.1391420868190; Mon, 03 Feb 2014 01:47:48 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id j65sm26386782qgj.18.2014.02.03.01.47.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Feb 2014 01:47:47 -0800 (PST) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Mon, 3 Feb 2014 19:44:32 +1000 Message-Id: <1391420690-23745-5-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1391420690-23745-1-git-send-email-edgar.iglesias@gmail.com> References: <1391420690-23745-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:c01::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 v4 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 3814a7e..d8cfe52 100644 --- a/exec.c +++ b/exec.c @@ -781,7 +781,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; }