From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvOx-0001uq-Fo for qemu-devel@nongnu.org; Fri, 24 May 2013 13:03:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfvOs-00014G-Kk for qemu-devel@nongnu.org; Fri, 24 May 2013 13:03:35 -0400 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:48358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvOs-000143-Er for qemu-devel@nongnu.org; Fri, 24 May 2013 13:03:30 -0400 Received: by mail-ea0-f169.google.com with SMTP id m14so2604506eaj.14 for ; Fri, 24 May 2013 10:03:29 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 24 May 2013 19:02:59 +0200 Message-Id: <1369414987-8839-8-git-send-email-pbonzini@redhat.com> In-Reply-To: <1369414987-8839-1-git-send-email-pbonzini@redhat.com> References: <1369414987-8839-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 07/15] 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: Jan Kiszka From: Jan Kiszka Improves readability. Reviewed-by: Peter Maydell 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