summaryrefslogtreecommitdiff
path: root/hw/display/cg3.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2017-04-05 09:02:46 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2017-04-21 08:31:30 +0100
commitbe4221d993cc15d3a14ca01181818ba5c41d5ab5 (patch)
tree0d050c14b69f00af8420d10f04808903bb40f91a /hw/display/cg3.c
parent66e2f304a3af6304a3ba449b708e29fc4d2f6dc2 (diff)
downloadqemu-be4221d993cc15d3a14ca01181818ba5c41d5ab5.zip
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/cg3.c')
-rw-r--r--hw/display/cg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/cg3.c b/hw/display/cg3.c
index 7d436945e9..b42f60e201 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) {