diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-24 12:40:43 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-29 16:27:29 +0200 |
commit | a649b9168cb9169b41532b168b94294e2be32e50 (patch) | |
tree | a5777db5003d245a760ba61e3a14077d5546fe74 /exec.c | |
parent | 968a5627c80ff2b9fd1ed40f9400897088bd661a (diff) |
exec: just use io_mem_read/io_mem_write for 8-byte I/O accesses
The memory API is able to split it in two 4-byte accesses.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -2263,13 +2263,7 @@ static inline uint64_t ldq_phys_internal(hwaddr addr, false); if (l < 8 || !memory_access_is_direct(section->mr, false)) { /* I/O case */ -#ifdef TARGET_WORDS_BIGENDIAN - val = io_mem_read(section->mr, addr1, 4) << 32; - val |= io_mem_read(section->mr, addr1 + 4, 4); -#else - val = io_mem_read(section->mr, addr1, 4); - val |= io_mem_read(section->mr, addr1 + 4, 4) << 32; -#endif + val = io_mem_read(section->mr, addr1, 8); #if defined(TARGET_WORDS_BIGENDIAN) if (endian == DEVICE_LITTLE_ENDIAN) { val = bswap64(val); |