In this version, I discarded the iterative version for dirty getting. With the last patch, VGA can be compiled in hwlib. However, the patch (even unfinished) reveals strange effects, so some discussion would be nice.
URL git://repo.or.cz/qemu/blueswirl.git http://repo.or.cz/r/qemu/blueswirl.git Blue Swirl (3): memory: memory: change dirty getting API to take a size vga: move Cirrus VGA template to its own file vga: compile in hwlib Makefile.objs | 1 + Makefile.target | 1 - arch_init.c | 7 +- exec-obsolete.h | 14 +++- hw/cirrus_vga.c | 9 ++ hw/cirrus_vga_template.h | 102 +++++++++++++++++++++ hw/framebuffer.c | 9 +-- hw/g364fb.c | 3 +- hw/sm501.c | 11 +-- hw/tcx.c | 19 ++-- hw/vga.c | 223 ++++++++++++++++++++++++++++++++++----------- hw/vga_int.h | 14 +--- hw/vga_template.h | 122 +++++++++----------------- memory.c | 5 +- memory.h | 9 +- 15 files changed, 362 insertions(+), 187 deletions(-) create mode 100644 hw/cirrus_vga_template.h -- 1.7.9.rc0