memory: split address_space_read and address_space_write
commiteb7eeb88628074207dd611472e712af775985e73
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Dec 2015 09:06:31 +0000 (9 10:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Dec 2015 16:33:48 +0000 (17 17:33 +0100)
tree9c7716bae80dc9d3eb21a6798b338fe9d2d162a8
parent612263cf33062f7441a5d0e3b37c65991fdc3210
memory: split address_space_read and address_space_write

Rather than dispatching on is_write for every iteration, make
address_space_rw call one of the two functions.  The amount of
duplicate logic is pretty small, and memory_access_is_direct can
be tweaked so that it inlines better in the callers.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c