]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: render_memory_region: factor out fr constant setters
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 3 Jun 2013 05:33:29 +0000 (15:33 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2013 14:39:52 +0000 (16:39 +0200)
commit2eb74e1a1ef145034aa41255c4a6f469d560c96d
treebe2e90f3168fb69e91b2d6a5a34f6e9037bd69f3
parent41a6e477fda3e3e5c8cc860458d29164625dc5e0
memory: render_memory_region: factor out fr constant setters

These 4 replicated lines set properties of fr that are constant over
the course of the function. Factor out their repeated setting (and also
guards against them being set multiple times in the loop below).

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