memory: MemoryRegion: factor out memory region re-adder
commit67891b8a85cd8238b8c55ef438b87146ff3646aa
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Fri, 6 Jun 2014 06:15:18 +0000 (5 23:15 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Jun 2014 15:11:13 +0000 (17 17:11 +0200)
tree5fd5f4ec384b4e7e8401d152ef11301f4af4c05e
parent0598701a4947ddbc19391e008cf753f8f22f3c25
memory: MemoryRegion: factor out memory region re-adder

memory_region_set_address is mostly just a function that deletes and
re-adds a memory region. Factor this generic functionality out into a
re-usable function. This prepares support for further QOMification
of MemoryRegion.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c