mirror of https://github.com/xemu-project/xemu.git
exec: eliminate stq_phys_notdirty
It is not used anywhere. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ee983cb3cc
commit
8b0d6711a2
27
exec.c
27
exec.c
|
@ -2390,33 +2390,6 @@ void stl_phys_notdirty(hwaddr addr, uint32_t val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void stq_phys_notdirty(hwaddr addr, uint64_t val)
|
|
||||||
{
|
|
||||||
uint8_t *ptr;
|
|
||||||
MemoryRegionSection *section;
|
|
||||||
|
|
||||||
section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS);
|
|
||||||
|
|
||||||
if (!memory_region_is_ram(section->mr) || section->readonly) {
|
|
||||||
addr = memory_region_section_addr(section, addr);
|
|
||||||
if (memory_region_is_ram(section->mr)) {
|
|
||||||
section = &phys_sections[phys_section_rom];
|
|
||||||
}
|
|
||||||
#ifdef TARGET_WORDS_BIGENDIAN
|
|
||||||
io_mem_write(section->mr, addr, val >> 32, 4);
|
|
||||||
io_mem_write(section->mr, addr + 4, (uint32_t)val, 4);
|
|
||||||
#else
|
|
||||||
io_mem_write(section->mr, addr, (uint32_t)val, 4);
|
|
||||||
io_mem_write(section->mr, addr + 4, val >> 32, 4);
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
ptr = qemu_get_ram_ptr((memory_region_get_ram_addr(section->mr)
|
|
||||||
& TARGET_PAGE_MASK)
|
|
||||||
+ memory_region_section_addr(section, addr));
|
|
||||||
stq_p(ptr, val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* warning: addr must be aligned */
|
/* warning: addr must be aligned */
|
||||||
static inline void stl_phys_internal(hwaddr addr, uint32_t val,
|
static inline void stl_phys_internal(hwaddr addr, uint32_t val,
|
||||||
enum device_endian endian)
|
enum device_endian endian)
|
||||||
|
|
|
@ -102,7 +102,6 @@ uint32_t lduw_phys(hwaddr addr);
|
||||||
uint32_t ldl_phys(hwaddr addr);
|
uint32_t ldl_phys(hwaddr addr);
|
||||||
uint64_t ldq_phys(hwaddr addr);
|
uint64_t ldq_phys(hwaddr addr);
|
||||||
void stl_phys_notdirty(hwaddr addr, uint32_t val);
|
void stl_phys_notdirty(hwaddr addr, uint32_t val);
|
||||||
void stq_phys_notdirty(hwaddr addr, uint64_t val);
|
|
||||||
void stw_phys(hwaddr addr, uint32_t val);
|
void stw_phys(hwaddr addr, uint32_t val);
|
||||||
void stl_phys(hwaddr addr, uint32_t val);
|
void stl_phys(hwaddr addr, uint32_t val);
|
||||||
void stq_phys(hwaddr addr, uint64_t val);
|
void stq_phys(hwaddr addr, uint64_t val);
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
#pragma GCC poison ldl_phys
|
#pragma GCC poison ldl_phys
|
||||||
#pragma GCC poison ldq_phys
|
#pragma GCC poison ldq_phys
|
||||||
#pragma GCC poison stl_phys_notdirty
|
#pragma GCC poison stl_phys_notdirty
|
||||||
#pragma GCC poison stq_phys_notdirty
|
|
||||||
#pragma GCC poison stw_phys
|
#pragma GCC poison stw_phys
|
||||||
#pragma GCC poison stl_phys
|
#pragma GCC poison stl_phys
|
||||||
#pragma GCC poison stq_phys
|
#pragma GCC poison stq_phys
|
||||||
|
|
Loading…
Reference in New Issue