Received: from eggs.gnu.org ([208.118.235.92]:44823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGS-0003sA-2z for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UekGQ-000516-Af for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:56 -0400 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:60365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGQ-00050Y-3O for qemu-devel@nongnu.org; Tue, 21 May 2013 06:57:54 -0400 Received: by mail-ea0-f181.google.com with SMTP id a11so295599eae.12 for ; Tue, 21 May 2013 03:57:53 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 21 May 2013 12:57:08 +0200 Message-Id: <1369133851-1894-8-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 07/30] memory: Replace open-coded memory_region_is_romd 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, Jan Kiszka , David Gibson From: Jan Kiszka Improves readability. Signed-off-by: Jan Kiszka --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate-all.c b/translate-all.c index da93608..0d84b0d 100644 --- a/translate-all.c +++ b/translate-all.c @@ -1359,7 +1359,7 @@ void tb_invalidate_phys_addr(hwaddr addr) section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) - || (section->mr->rom_device && section->mr->readable))) { + || memory_region_is_romd(section->mr))) { return; } ram_addr = (memory_region_get_ram_addr(section->mr) & TARGET_PAGE_MASK) -- 1.8.1.4