summary refs log tree commit diff stats
path: root/hw/misc/pci-testdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-11 12:19:25 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-08-17 23:25:24 +0200
commitad37168cbdaff061fd7c37be57de4692bd8c2c50 (patch)
treeb88da81d302b0f01b27ae8cf53365b86376cce2b /hw/misc/pci-testdev.c
parent1dd79a237eb84a70c21b7a640f237ee603b0e74a (diff)
downloadfocaccia-qemu-ad37168cbdaff061fd7c37be57de4692bd8c2c50.tar.gz
focaccia-qemu-ad37168cbdaff061fd7c37be57de4692bd8c2c50.zip
vga: do not dynamically allocate chain4_alias
Instead, add a boolean variable to indicate the presence of the region.
This avoids a repeated malloc/free (later we can also avoid the
add_child/unparent by changing the offset/size of the alias).

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/pci-testdev.c')
0 files changed, 0 insertions, 0 deletions