summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Cave-Ayland2017-04-05 10:02:46 +0200
committerMark Cave-Ayland2017-04-21 09:31:30 +0200
commitbe4221d993cc15d3a14ca01181818ba5c41d5ab5 (patch)
tree0d050c14b69f00af8420d10f04808903bb40f91a
parentcg3: remove TARGET_PAGE_SIZE rounding on dirty page detection (diff)
downloadqemu-be4221d993cc15d3a14ca01181818ba5c41d5ab5.tar.gz
qemu-be4221d993cc15d3a14ca01181818ba5c41d5ab5.tar.xz
qemu-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>
-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) {