diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2017-04-05 09:02:46 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2017-04-21 08:31:30 +0100 |
commit | be4221d993cc15d3a14ca01181818ba5c41d5ab5 (patch) | |
tree | 0d050c14b69f00af8420d10f04808903bb40f91a /hw/display | |
parent | 66e2f304a3af6304a3ba449b708e29fc4d2f6dc2 (diff) | |
download | qemu-be4221d993cc15d3a14ca01181818ba5c41d5ab5.zip qemu-be4221d993cc15d3a14ca01181818ba5c41d5ab5.tar.gz qemu-be4221d993cc15d3a14ca01181818ba5c41d5ab5.tar.bz2 |
cg3: fix up size parameter for memory_region_get_dirty()
The code was incorrectly calculating the end address rather than the size of
the required region.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/cg3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/cg3.c b/hw/display/cg3.c index 7d43694..b42f60e 100644 --- a/hw/display/cg3.c +++ b/hw/display/cg3.c @@ -114,7 +114,7 @@ static void cg3_update_display(void *opaque) int update = s->full_update; page = y * width; - update |= memory_region_get_dirty(&s->vram_mem, page, page + width, + update |= memory_region_get_dirty(&s->vram_mem, page, width, DIRTY_MEMORY_VGA); if (update) { if (y_start < 0) { |