Received: from eggs.gnu.org ([208.118.235.92]:44670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGD-0003Na-2c for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UekGB-0004wh-Rs for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:40 -0400 Received: from mail-ee0-f54.google.com ([74.125.83.54]:60894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGB-0004wP-Lr for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:39 -0400 Received: by mail-ee0-f54.google.com with SMTP id e50so311405eek.13 for ; Tue, 21 May 2013 03:57:38 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 21 May 2013 12:57:02 +0200 Message-Id: <1369133851-1894-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1369133851-1894-1-git-send-email-pbonzini@redhat.com> References: <1369133851-1894-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 01/30] exec: remove obsolete comment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, jan.kiszka@gmail.com, David Gibson See how we call memory_region_section_addr two lines below to convert a physical address to a base address in the region. Signed-off-by: Paolo Bonzini --- exec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/exec.c b/exec.c index aec65c5..197625c 100644 --- a/exec.c +++ b/exec.c @@ -639,12 +639,6 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env, iotlb |= phys_section_rom; } } else { - /* IO handlers are currently passed a physical address. - It would be nice to pass an offset from the base address - of that region. This would avoid having to special case RAM, - and avoid full address decoding in every device. - We can't use the high bits of pd for this because - IO_MEM_ROMD uses these as a ram address. */ iotlb = section - phys_sections; iotlb += memory_region_section_addr(section, paddr); } -- 1.8.1.4