Received: from eggs.gnu.org ([208.118.235.92]:45968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvRr-0006my-HZ for qemu-devel@nongnu.org; Fri, 24 May 2013 13:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfvRi-000227-48 for qemu-devel@nongnu.org; Fri, 24 May 2013 13:06:35 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:35306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvRh-00021u-UM for qemu-devel@nongnu.org; Fri, 24 May 2013 13:06:26 -0400 Received: by mail-ee0-f46.google.com with SMTP id e49so2645392eek.5 for ; Fri, 24 May 2013 10:06:25 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 24 May 2013 19:05:45 +0200 Message-Id: <1369415157-8953-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1369415157-8953-1-git-send-email-pbonzini@redhat.com> References: <1369415157-8953-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 10/22] exec: expect mr->ops to be initialized for ROM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org There is no need anymore to use the special phys_section_rom section. Signed-off-by: Paolo Bonzini --- exec.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/exec.c b/exec.c index 613bbd7..411a224 100644 --- a/exec.c +++ b/exec.c @@ -2332,9 +2332,6 @@ void stl_phys_notdirty(hwaddr addr, uint32_t val) section = address_space_translate(&address_space_memory, addr, &addr1, &l, true); if (l < 4 || !memory_region_is_ram(section->mr) || section->readonly) { - if (memory_region_is_ram(section->mr)) { - section = &phys_sections[phys_section_rom]; - } io_mem_write(section->mr, addr1, val, 4); } else { addr1 += memory_region_get_ram_addr(section->mr) & TARGET_PAGE_MASK; @@ -2365,9 +2362,6 @@ static inline void stl_phys_internal(hwaddr addr, uint32_t val, section = address_space_translate(&address_space_memory, addr, &addr1, &l, true); if (l < 4 || !memory_region_is_ram(section->mr) || section->readonly) { - if (memory_region_is_ram(section->mr)) { - section = &phys_sections[phys_section_rom]; - } #if defined(TARGET_WORDS_BIGENDIAN) if (endian == DEVICE_LITTLE_ENDIAN) { val = bswap32(val); @@ -2431,9 +2425,6 @@ static inline void stw_phys_internal(hwaddr addr, uint32_t val, section = address_space_translate(&address_space_memory, addr, &addr1, &l, true); if (l < 2 || !memory_region_is_ram(section->mr) || section->readonly) { - if (memory_region_is_ram(section->mr)) { - section = &phys_sections[phys_section_rom]; - } #if defined(TARGET_WORDS_BIGENDIAN) if (endian == DEVICE_LITTLE_ENDIAN) { val = bswap16(val); -- 1.8.1.4