This started as part of the work on Gerd's thread-safe display patches but ended up turning into something a lot more comprehensive. It contains lots of cleanup and fixes for display invalidation (particularly on 24-bit TCX) exposed by testing the thread-safe patchset.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> v2: - Add Reviewed-by tags from Gerd and Philippe - Drop patch 3 as suggested by Richard Mark Cave-Ayland (13): cg3: remove TARGET_PAGE_SIZE rounding on dirty page detection cg3: fix up size parameter for memory_region_get_dirty() cg3: switch to load_image_mr() and remove prom-addr hack tcx: alter tcx_set_dirty() to accept address and length parameters tcx: ensure tcx_set_dirty() also invalidates the 24-bit plane and cplane tcx: alter tcx24_check_dirty() to accept address and length parameters tcx: alter tcx24_reset_dirty() to accept address and length parameters tcx: remove page24 and cpage from tcx24_update_display() tcx: remove TARGET_PAGE_SIZE from tcx_update_display() tcx: remove TARGET_PAGE_SIZE from tcx24_update_display() tcx: remove primitives for non-32-bit surfaces tcx: use tcx_set_dirty() for accelerated ops tcx: switch to load_image_mr() and remove prom_addr hack hw/display/cg3.c | 12 +-- hw/display/tcx.c | 298 +++++++++++------------------------------------------- hw/sparc/sun4m.c | 2 - 3 files changed, 65 insertions(+), 247 deletions(-) -- 1.7.10.4