memory: assign MemoryRegionOps to all regions
commit2cdfcf272d1a38e22879aecae83e95be51369b2d
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2013 11:55:52 +0000 (24 13:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 May 2013 14:26:58 +0000 (29 16:26 +0200)
treec2bec009bfba763e081664e9278a17a1069b50ec
parentd197063fcf969e1269dc53c9c9e9a073f87aa3b4
memory: assign MemoryRegionOps to all regions

This allows to remove the checks on section->readonly.  Simply,
write accesses to ROM will not be considered "direct" and will
go through mr->ops without any special intervention.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c