summary refs log tree commit diff stats
path: root/hw/omap2.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-05-03 22:25:16 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-08 16:11:38 -0500
commit4e12cd946f9e7a6e3d35bcce0bc7bfe38cec4eb7 (patch)
tree1b3d29a0a137dac44efe97ac1e89e2d4ca8676c3 /hw/omap2.c
parentfbb7b4e0804d2168f24142eebf7552adde1968dc (diff)
downloadfocaccia-qemu-4e12cd946f9e7a6e3d35bcce0bc7bfe38cec4eb7.tar.gz
focaccia-qemu-4e12cd946f9e7a6e3d35bcce0bc7bfe38cec4eb7.zip
vga: Replace VGA_COMMON with a structure
All VGA devices share a common field subset; currently they do so by
a macro which defines the common fields inline their state structures,
relying on the the common state being placed at offset 0 in the structure.
This makes refactoring the code difficult and requires a lot of error prone
casts.

Replace the macro by a new VGACommonState structure, and the casts by
regular field access and container_of() for upcasts.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/omap2.c')
0 files changed, 0 insertions, 0 deletions