提交 be4221d9 编写于 作者: M Mark Cave-Ayland

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: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
上级 66e2f304
...@@ -114,7 +114,7 @@ static void cg3_update_display(void *opaque) ...@@ -114,7 +114,7 @@ static void cg3_update_display(void *opaque)
int update = s->full_update; int update = s->full_update;
page = y * width; 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); DIRTY_MEMORY_VGA);
if (update) { if (update) {
if (y_start < 0) { if (y_start < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册