diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-24 13:21:01 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-29 16:27:01 +0200 |
commit | d17d45e95f497e67aa48ff9e49a4ad62bb1e17df (patch) | |
tree | d36843291435ea28230bf7e40fbaea1bb9737be2 | |
parent | 2cdfcf272d1a38e22879aecae83e95be51369b2d (diff) | |
download | hqemu-d17d45e95f497e67aa48ff9e49a4ad62bb1e17df.zip hqemu-d17d45e95f497e67aa48ff9e49a4ad62bb1e17df.tar.gz |
exec: expect mr->ops to be initialized for ROM
There is no need to use the special phys_section_rom section.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | exec.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -2335,9 +2335,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; @@ -2368,9 +2365,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); @@ -2434,9 +2428,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); |